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

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

问题描述

开始2013年5月1日, 苹果将停止接受访问的应用程序唯一设备标识符(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.

要解决这一问题,并对冲我的应用程序的风险被拒,我发现的 this所以。问题 ,他们建议使用 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从离开。苹果明确除去使用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:

deviceToken

deviceToken

标识设备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.

请注意,设备令牌是唯一标识符属性不同
  的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天全站免登陆