在不访问 UDID 的情况下发送推送通知
我知道 Apple 开始拒绝访问 UDID 的应用程序.那么我们如何在不访问 UDID 的情况下发送推送通知.是否可以?如果是,请帮我解决这个问题.
I come to know that Apple started to reject apps that access UDIDs. Then How can we send push notification without accessing UDIDs. Is it possible? if yes, please help me to solve this problem.
提前致谢.
设备令牌(由 APNS 使用)和 UDID 是两个不同的东西.他们没有任何关系.
The device token (used by APNS) and the UDID are two different things. They have nothing to do with each other.
您在应用委托的 application:didRegisterForRemoteNotificationsWithDeviceToken:
方法中获取推送通知的设备令牌.
You obtain the device token for push notifications in your app delegate's application:didRegisterForRemoteNotificationsWithDeviceToken:
method.
文档 注释以下内容:
设备令牌与 UIDevice 的 uniqueIdentifier 属性不同,因为出于安全和隐私原因,它必须在设备擦除时更改.
The device token is different from the uniqueIdentifier property of UIDevice because, for security and privacy reasons, it must change when the device is wiped.