Hi all,
To implement Apple Push Notification, I need register my Iphone Application to APNS in didFinishLaunchingWithOptions method and then get the Device Token in didRegisterForRemoteNotificationsWithDeviceToken.
When I run my application for first time, the didFinishLaunchingWithOptions will get called. But when I run my application for second time, the didFinishLaunchingWithOptions will not get called. So, it seems my application just register one time to APNS that is the first time I run the application. So, what I worry about is if the device token changed next time, it seems I cannot get the latest device token although I had run my application.
Anyone have any idea on this? or I am thinking something wrong?
Any idea and comments are welcome. Thanks a lot
To implement Apple Push Notification, I need register my Iphone Application to APNS in didFinishLaunchingWithOptions method and then get the Device Token in didRegisterForRemoteNotificationsWithDeviceToken.
When I run my application for first time, the didFinishLaunchingWithOptions will get called. But when I run my application for second time, the didFinishLaunchingWithOptions will not get called. So, it seems my application just register one time to APNS that is the first time I run the application. So, what I worry about is if the device token changed next time, it seems I cannot get the latest device token although I had run my application.
Anyone have any idea on this? or I am thinking something wrong?
Any idea and comments are welcome. Thanks a lot