Solution

  1.  - (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
  2. {
  3.     NSLog(@"My token is: %@", deviceToken);
  4.        
  5.  
  6.     NSString * deviceTokenString = [[[deviceToken description]
  7.                                  stringByTrimmingCharactersInSet:[NSCharacterSetcharacterSetWithCharactersInString:@"<>"]]
  8.                                 stringByReplacingOccurrencesOfString:@" "withString:@""];
  9.    
  10.    
  11.    NSLog@"Device Token set to %@",deviceTokenString);
  12. }