ios - Urban Airship Not Requesting Access For Push Notifications -
after following extensive start-up guide on urban airship's website, finished. upon completion ran app on phone , ran normally, console filled urban airship stuff , going accord plan noticed request use push notifications never came up. i'm running following code in appdelegate.m:
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { // override point customization after application launch. //[[uinavigationbar appearance] setbartintcolor:[uicolor colorwithred:0.22 green:0.24 blue:0.75 alpha:1]]; [[uinavigationbar appearance] settintcolor:[uicolor whitecolor]]; [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent]; [[uinavigationbar appearance] setbackgroundimage:[uiimage imagenamed:@"color"] forbarmetrics:uibarmetricsdefault]; //nsshadow *shadow = [[nsshadow alloc] init]; //shadow.shadowcolor = [uicolor colorwithred:0.0 green:0.0 blue:0.0 alpha:0.8]; //shadow.shadowoffset = cgsizemake(0, 1); [[uinavigationbar appearance] settitletextattributes: [nsdictionary dictionarywithobjectsandkeys: [uicolor colorwithred:1 green:1 blue:1 alpha:1.0], nsforegroundcolorattributename, [uifont fontwithname:@"helveticaneue-condensedblack" size:21.0], nsfontattributename, nil]]; uaconfig *config = [uaconfig defaultconfig]; [uairship takeoff:config]; [uapush shared].notificationtypes = (uiremotenotificationtypebadge | uiremotenotificationtypesound | uiremotenotificationtypealert | uiremotenotificationtypenewsstandcontentavailability); [uapush setdefaultpushenabledvalue:yes]; return yes; }
yes, have imported uairship.h etc. correctly, please don't suggest that.
console: know production keys aren't valid, that's because need credit card register them, , i'm waiting on guardians credit card come through.
2014-06-26 02:13:13.504 husky athletics[573:83549] [w] -[uaconfig validate] [line 160] production app key not valid. 2014-06-26 02:13:13.506 husky athletics[573:83549] [w] -[uaconfig validate] [line 164] production app secret not valid. 2014-06-26 02:13:13.506 husky athletics[573:83549] [i] +[uairship executeunsafetakeoff:] [line 147] app key: (censored) 2014-06-26 02:13:13.506 husky athletics[573:83549] [i] +[uairship executeunsafetakeoff:] [line 148] app secret: (censored) 2014-06-26 02:13:13.507 husky athletics[573:83549] [i] +[uairship executeunsafetakeoff:] [line 149] server: https://device-api.urbanairship.com 2014-06-26 02:13:13.508 husky athletics[573:83549] [d] -[uairship configureuseragent] [line 314] setting user-agent ua requests husky athletics 1.0 (iphone; iphone os 8.0; ualib 4.0.0; (censored); en_us) 2014-06-26 02:13:13.541 husky athletics[573:83549] [d] void printreachabilityflags(scnetworkreachabilityflags, const char *) [line 79] reachability flag status: wr t----l- networkstatusforflags 2014-06-26 02:13:13.545 husky athletics[573:83549] [i] +[uairship executeunsafetakeoff:] [line 193] registering uaurlprotocol 2014-06-26 02:13:13.555 husky athletics[573:83549] channel id: (censored) 2014-06-26 02:13:14.269 husky athletics[573:83549] [d] -[uauserapiclient updateuser:devicetoken:channelid:onsuccess:onfailure:] [line 117] updating user (censored). 2014-06-26 02:13:14.274 husky athletics[573:83549] [e] -[uaappdelegate application:didfailtoregisterforremotenotificationswitherror:] [line 42] failed register remote notifications error: error domain=nscocoaerrordomain code=3000 "no valid 'aps-environment' entitlement string found application" userinfo=0x170074e40 {nslocalizeddescription=no valid 'aps-environment' entitlement string found application} 2014-06-26 02:13:14.589 husky athletics[573:83549] [d] __20-[uauser updateuser]_block_invoke161 [line 290] failed update user 2014-06-26 02:13:28.614 husky athletics[573:83821] [d] +[uakeychainutils getdeviceid] [line 238] retrieved device id info keychain. 2014-06-26 02:13:28.615 husky athletics[573:83821] [d] +[uakeychainutils getdeviceid] [line 245] loaded device id: (censored) 2014-06-26 02:13:28.616 husky athletics[573:83821] [d] +[uakeychainutils getdeviceid] [line 246] loaded model name: iphone6,1 2014-06-26 02:13:29.004 husky athletics[573:83549] [d] __39-[uaanalytics sendoperationwithevents:]_block_invoke [line 582] analytics data sent successfully. status: 200
Comments
Post a Comment