简体   繁体   中英

Notifications when iPhone is turned off or app is uninstalled

I was recently asked questions related to Notifications in an interview :

  1. What happens to the notifications when the iPhone is turned off

  2. What happens to the notifications when the user has uninstalled my application

I know there are already some questions related to Notifications but none of them explains what really happens to all those notifications like where are they stored or what happens to them for the time being but what they ask or others answer is that how to still get the notification which is not really my question

  1. When the phone is turned off, the notifications will remain on APNS for the expiry time and APNS will try to deliver it until it expires. See this and search for apns-expiration

  2. If the app is uninstalled, you will get an error on server side that the device token to which the notifications is sent is not valid any more.

You must read the docs carefully. It is all mentioned there.

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