tags:

views:

149

answers:

0

I am getting a bad token passed to me in

- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken

this code crashes on my iPhone but not my clients.

- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken {
NSLog(@"token:%@",[devToken description]);
}

I think something is wrong with my stored notifications settings on my iPhone but I can't find a way to delete them. deleting the app does not seem to do it.

Edit:Doing a complete restore removed all my notification settings and and now the token is fine. no more crashes.