iOS 推送通知设备令牌是否会更改? [英] Does a iOS Push notification device token change?
问题描述
在任何情况下,安装应用并注册通知后,设备令牌是否有可能发生变化.
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.
场景如下:
- 应用更新
- iOS 更新或在任何其他随机场景中.
推荐答案
以前在文档中是这样的,
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.
来自新文档:
重要提示:为保护用户隐私,请勿尝试使用设备标识设备的令牌.
Important: To protect user privacy, do not attempt to use a device token to identify a device.
APN 可以出于多种原因发布新的设备令牌:
APNs can issue a new device token for a variety of reasons:
用户在新设备上安装您的应用
User installs your app on a new device
用户从备份中恢复设备
用户重新安装操作系统
其他系统定义的事件
因此,应用必须在启动时请求设备令牌,如 APNs 到设备连接信任和设备令牌中所述.
As a result, apps must request the device token at launch time, as described in APNs-to-Device Connection Trust and Device Tokens.
这篇关于iOS 推送通知设备令牌是否会更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!