iOS 6 禁止使用 UDID 进行推送通知? [英] iOS 6 use of UDIDs for push notifications forbidden?

查看:25
本文介绍了iOS 6 禁止使用 UDID 进行推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自 2013 年 5 月 1 日起,Apple 将停止接受访问唯一设备标识符 (UDID).听起来像 didRegisterForRemoteNotificationsWithDeviceToken:,将不再传递 UDID 作为设备令牌;但到目前为止,iOS 6.0 似乎并非如此.

Starting May 1st, 2013, Apple will stop accepting apps that access unique device identifiers (UDIDs). Sounds like didRegisterForRemoteNotificationsWithDeviceToken:, will no longer get passed a UDID as the device token; but so far, this doesn't seem to be the case in iOS 6.0.

为了解决这个问题并避免我的应用被拒绝的风险,我发现了这个 SO问题,他们建议使用ASIdentifierManager来检查用户是否为应用启用了广告跟踪,然后获取advertisingIdentifier,并使用它作为设备令牌.我应该在 registerForRemoteNotificationTypes 内部执行此操作,然后再在我的服务器上注册用于推送通知的设备,还是只相信我作为 deviceToken 传递的任何内容?

To get around the issue and hedge the risk of my app getting rejected, I found this S.O. question, where they suggest using ASIdentifierManager to check if the user has enabled ad tracking for the app and then get the advertisingIdentifier, and use it as the device token. Should I be doing that inside registerForRemoteNotificationTypes before registering the device for push notifications on my servers or simply trust whatever I get passed as deviceToken?

推荐答案

我认为您没有必要如此急切地摆脱 UDID.Apple 明确删除了使用 UDID 的应用程序,但是 APS 系统不使用 UDID,它使用设备令牌.来自该方法的文档:

I see no need for you to be switching so eagerly away from UDIDs. Apple is explicitly removing applications that use UDIDs, however the APS system doesn't use UDIDs, it uses device tokens. From the documentation on that method:

设备令牌

向 APS 标识设备的令牌.令牌是一个不透明的数据类型,因为这是提供者需要的形式当它向设备发送通知时提交到 APS 服务器.出于性能原因,APS 服务器需要二进制格式.

A token that identifies the device to APS. The token is an opaque data type because that is the form that the provider needs to submit to the APS servers when it sends a notification to a device. The APS servers require a binary format for performance reasons.

注意设备令牌不同于 uniqueIdentifier 属性的 UIDevice 因为,出于安全和隐私的原因,它必须改变当设备被擦除时.

Note that 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.

在 APNS 领域一切顺利.继续.

All is well in APNS-land. Carry on.

这篇关于iOS 6 禁止使用 UDID 进行推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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