0
我想UrbanAirship融入我的應用程序,並一直運行到以下錯誤:Urbanairship不工作的啓動
2013-10-08 11:07:29.381 iostestapp[1949:60b] [I] +[UAirship executeUnsafeTakeOff:] [Line 143] App Key: <key>
2013-10-08 11:07:29.383 iostestapp[1949:60b] [I] +[UAirship executeUnsafeTakeOff:] [Line 144] App Secret: <secret>
2013-10-08 11:07:29.385 iostestapp[1949:60b] [I] +[UAirship executeUnsafeTakeOff:] [Line 145] Server: https://device-api.urbanairship.com
2013-10-08 11:07:29.388 iostestapp[1949:60b] [D] -[UAirship configureUserAgent] [Line 297] Setting User-Agent for UA requests to iostestapp 1.0 (iPhone; iPhone OS 7.0.2; UALib 3.0.0; <key>; en_US)
2013-10-08 11:07:29.404 iostestapp[1949:60b] [D] void PrintReachabilityFlags(SCNetworkReachabilityFlags, const char *) [Line 79] Reachability Flag Status: -R -----l- networkStatusForFlags
2013-10-08 11:07:29.453 iostestapp[1949:60b] [E] -[UAAutoAppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] [Line 43] Failed To Register For Remote Notifications With Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x16eab540 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}
2013-10-08 11:07:44.418 iostestapp[1949:430b] [D] +[UAKeychainUtils getDeviceID] [Line 227] Retrieved device id info from keychain.
2013-10-08 11:07:44.419 iostestapp[1949:430b] [D] +[UAKeychainUtils getDeviceID] [Line 234] Loaded Device ID: 707C3963-D503-450F-B8DA-7499E18CB14D
2013-10-08 11:07:44.421 iostestapp[1949:430b] [D] +[UAKeychainUtils getDeviceID] [Line 235] Loaded Model Name: iPhone5,1
2013-10-08 11:07:44.824 iostestapp[1949:60b] [D] __39-[UAAnalytics sendOperationWithEvents:]_block_invoke [Line 622] Analytics data sent successfully. Status: 200
下面是我寫它的代碼:
UAConfig *配置= [UAConfig defaultConfig];
[UAirship takeOff:config];
[UAPush shared].notificationTypes = (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeNewsstandContentAvailability);
[[UAPush shared] setPushEnabled:YES];
.plist已經擁有正確的密鑰,我已經註冊了我的軟件包ID與蘋果。還有什麼我失蹤?我瀏覽了5次文檔。