I am implementing push notifications. I\'d like to save my APNS Token as a String.
- (void)application:(UIApplication *)application didRegisterForRemoteNotif
You could use this
- (NSString *)stringWithDeviceToken:(NSData *)deviceToken { const char *data = [deviceToken bytes]; NSMutableString *token = [NSMutableString string]; for (NSUInteger i = 0; i < [deviceToken length]; i++) { [token appendFormat:@"%02.2hhX", data[i]]; } return [token copy]; }