iOS推送通知设备令牌是否会更改? [英] Does a iOS Push notification device token change?

查看:177
本文介绍了iOS推送通知设备令牌是否会更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装应用程序并在任何类型的场景中注册通知后,是否有可能更改设备令牌。

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更新
    或任何其他随机方案。

推荐答案

以前在文档中就像是,


如果用户将备份数据恢复到新设备或重新安装
操作系统,则设备令牌会更改。

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

来自新文档

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


Im portant:为了保护用户隐私,请勿尝试使用设备
令牌来识别设备。

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.

这篇关于iOS推送通知设备令牌是否会更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆