ios - 如何在推送通知中正确使用 UDID?

标签 ios apple-push-notifications udid

我想了解如何正确使用 UDID 将通知推送到 iOS 中!

最近 Apple 拒绝了几个使用 UDID 跟踪人员的应用程序。 当我阅读Apple的通知指南时,它似乎至少一年没有修改过。那么苹果如何知道我们是否使用好的或坏的 UDID 推送通知...... 没有 UDID 可以通知 iphone 吗?

最佳答案

为什么推送通知需要 UDID?您可以从 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken 方法获取推送通知的设备 token 。

guide

In APNs, assurance of accurate message routing—or token trust—is made possible through the device token. A device token is an opaque identifier of a device that APNs gives to the device when it first connects with it. The device shares the device token with its provider. Thereafter, this token accompanies each notification from the provider. It is the basis for establishing trust that the routing of a particular notification is legitimate.

Note: A device token is not the same thing as the device UDID returned by the identifierForVendor or uniqueIdentifier property of UIDevice or any other similar properties such as the advertisingIdentifier property of ASIdentifierManager. The following sections discuss the requisite components for connection trust and token trust as well as the four procedures for establishing trust.

关于ios - 如何在推送通知中正确使用 UDID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10787115/

相关文章:

ios - 使用 AVAudioPlayer 在 Swift 中播放远程 mp3 文件

ios - 快速的 tableview 到 webview

ios - 如何将 3 个 View Controller 嵌入到 1 个 View Controller 中?

android - 在应用程序图标上显示角标(Badge)(数字)的推荐方式是什么?

ios - 将 NSMutableDictionary 设置为 nil 是否会释放对其所有内容的引用?

ios - aps-environment 始终在发展

ios - Apple 推送通知错误/SSL 错误 20

ios - 跨应用程序的唯一 iOS 设备 ID

ios - 如果设置了UDID,如何安装iOS应用程序?

iphone - 在没有任何用户名的情况下投票一次