简体   繁体   中英

Push Notification Device Token

I have a live app. in apple store that implements a push notification procedure. As known I communicate with my server to send and save device tokens.

My server is receiving device tokens correctly for some devices(Requests) and also receives null values for some other devices.

How is that could be possible in any case?!

Then you have a bug in your code, the device never generates a null token, or you have failed to implement the following delegate:

- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err

If this delegate gets called then you could/should implement a retry algorithm that retries to re-register for the APN token a few times.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM