在任何情况下,安装应用程序并注册通知后,设备 token 是否有可能发生变化。
场景如:
- 应用更新
- iOS 更新 或在任何其他随机场景中。
最佳答案
以前在文档中是这样的,
If the user restores backup data to a new device or reinstalls the operating system, the device token changes.
来自新文档:
Important: To protect user privacy, do not attempt to use a device token to identify a device.
APNs can issue a new device token for a variety of reasons:
User installs your app on a new device
User restores device from a backup
User reinstalls the operating system
Other system-defined events
As a result, apps must request the device token at launch time, as described in APNs-to-Device Connection Trust and Device Tokens.
关于ios - iOS 推送通知设备 token 是否更改?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40169404/