I have a really weird thing happening. i am registering device tokens in DB for push service. using
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"===============didRegisterForRemoteNotificationsWithDeviceToken=============");
NSLog(@"My token is: %@", deviceToken);
// Prepare the Device Token for Registration (remove spaces and < >)
NSString *devToken = [[[[deviceToken description]
stringByReplacingOccurrencesOfString:@"<"withString:@""]
stringByReplacingOccurrencesOfString:@">" withString:@""]
stringByReplacingOccurrencesOfString: @" " withString: @""];
NSLog(@"My token is: %@", devToken);
}
as my code. now when i run the app on Xcode i get a token like this:
78bb45dc391bf920f5f5b2ac188ffb2bebfb5e1163e89a4482c56c32f02e092f
and my app works well.
When i install the same app via web (testflight or Diawi) i get a token like this:
e61c305464731d8d5302db2289b01d18621fb5fad04683dd81ffad6961d60213
and the push is not being received on the device.
Any Idea what is going on here????