ios - iOS 推送通知设备 token 是否更改?

标签 ios apple-push-notifications devicetoken

在任何情况下,安装应用程序并注册通知后,设备 token 是否有可能发生变化。

场景如:

  • 应用更新
  • 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/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html

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/

相关文章:

ios - 安装 Pod 失败 : Undefined symbols for architecture x86_64

ios - 添加 subview 后,Swift Playground UITable View Cell 未调整大小

ios - Realm 缓慢插入数据(主键 UUID().uuidString)

apple-push-notifications - 用于开发/沙盒的 APNs key (.p8 文件)

iphone - 通过推送通知发送超过 256 字节的数据

ios - 使用 Apple entreprise 应用程序的 Apple 推送通知未获取设备 token

ios - 是否可以在回调 didRegisterForRemoteNotificationsWithDeviceToken 中使用 deviceToken 来唯一标识一台设备

android - C++通用多平台获取mac地址的解决方案

PHP IOS 推送通知不适用于开发

ios - 重新生成 iOS APNS 证书;设备 token 受影响?