Does a iOS Push notification device token change?

不羁岁月 提交于 2019-11-30 15:51:35

问题


Is there any possibilities for a device token to change after the app is installed and registered for the notification in any kind of scenarios.

Scenarios like:

  • App update
  • iOS update or in any other random scenario's.

回答1:


Previously in document it was like,

If the user restores backup data to a new device or reinstalls the operating system, the device token changes.

From new documentation here:

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

Important: To protect user privacy, do not attempt to use a device token to identify a device.

Device tokens can change after updating the operating system, and always change when a device’s data and settings are erased. Whenever the system delivers a device token to an instance of your app, the app must forward it to your provider servers to allow further push notifications to the device.



来源:https://stackoverflow.com/questions/40169404/does-a-ios-push-notification-device-token-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!