【发布时间】:2014-05-16 00:11:01
【问题描述】:
我已经在我的 iPhone 应用中实现了推送通知,对于设备注册,我在应用中使用了以下代码。
[[[UIDevice currentDevice] identifierForVendor] UUIDString];
以上代码在大多数设备中都能正常工作。但是,最近在一些装有 iOS 7.1 的 iPhone 5s 设备中,它返回 null 并且由于此应用程序崩溃。
【问题讨论】:
-
您找到解决方案了吗?我也遇到了同样的问题。
-
@iOSMonster :我没有得到确切的解决方案,但我相信这是因为设备名称带有 char '(撇号)。
标签: ios7 push-notification apple-push-notifications iphone-5