Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
  2. NSArray *components = [deviceToken.description componentsSeparatedByCharactersInSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]];
  3. NSString *token = [components componentsJoinedByString:@""];
  4.  
  5. //sent token to server
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement