我使用城市飞艇在我的应用程序 使用documentationiPhone:不使用城市飞艇
我写的代码如下
NSMutableDictionary *takeOffOptions = [[[NSMutableDictionary alloc] init] autorelease];
[takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey];
[UAirship takeOff:takeOffOptions];
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
使用推送通知收到推送通知,但我收到以下错误日志在我的控制台。
did Fail To Register For Remote Notifications With Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0xce2a310
我两次检查文件和实施城市飞艇的网站上的代码
它显示了味精,“没有设备令牌找到” 那么应该是什么的问题。
plz分享如果您有任何想法。
在此先感谢。
您是否注册了urbanairship.com的设备?请分享导致此错误的代码 – 2012-08-14 06:16:17
yup我已经在我的设备中安装了该应用程序 – 2012-08-14 06:18:48
请参阅http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_push-notifications_part-2/ – Ramz 2012-08-14 06:30:20