在不访问 UDID 的情况下发送推送通知 [英] Sending Push Notification without accessing UDID

查看:30
本文介绍了在不访问 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.

这篇关于在不访问 UDID 的情况下发送推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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