iphone - urban airship , device token is null -


i have implemented push notification using urban airship (development) in iphone.

it works fine. want test in new device . installed same project in new device new mac pc added certificate in keychain , run , log shows device token null , no new device token in urban dashboard .

what reason of null device token ? there missing? shall .p12 file ?

i have in didfinishlaunchingwithoptions:

// results out open or close notification     bool storedresult =  [defaults boolforkey:airshipkey];      if(storedresult){         [uapush shared].pushenabled=yes;     }else{         [uapush shared].pushenabled=no;     }       // override point customization after application launch.     //create airship options directory , add required uiapplication launchoptions     nsmutabledictionary *takeoffoptions = [nsmutabledictionary dictionary];     [takeoffoptions setvalue:launchoptions forkey:uairshiptakeoffoptionslaunchoptionskey];      // call takeoff (which creates uairship singleton), passing in launch options     // library can record when app launched push notification. call     // required.     //     // populate airshipconfig.plist app's info https://go.urbanairship.com     [uairship takeoff:takeoffoptions];      // set icon badge 0 on startup (optional)     [[uapush shared] resetbadge];        [[uapush shared]      registerforremotenotificationtypes:(uiremotenotificationtypebadge |                                          uiremotenotificationtypesound |                                          uiremotenotificationtypealert)];      // handle incoming incoming push notifications.     // invoke `handlebackgroundnotification` on uapushnotificationdelegate.     [[uapush shared] handlenotification:[launchoptions valueforkey:uiapplicationlaunchoptionsremotenotificationkey]                        applicationstate:application.applicationstate]; 

and here didregisterforremotenotificationswithdevicetoken

- (void)application:(uiapplication *)application didregisterforremotenotificationswithdevicetoken:(nsdata *)devicetoken {       ua_linfo(@"apns device token: %@", devicetoken);     // updates device token , registers token ua.     [[uapush shared] registerdevicetoken:devicetoken];  } 

i hope can me

where see null value? in urban airship dashboard, or in method

- (void)application:(uiapplication *)application didregisterforremotenotificationswithdevicetoken:(nsdata *)newdevicetoken


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -