I want to send the device token to server in my application. I am using following method to retrieve the device token.
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSLog(@"deviceToken: %@", deviceToken);
}
but not worked in ios6. How can do this?
Have you written this line
inside this function,
It should work in iOS 6 if you have done this.