Last active
May 27, 2017 13:51
-
-
Save phynet/3b1414b6e289ec9bea8f to your computer and use it in GitHub Desktop.
Get iOS device token for push notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSString *token = [[deviceToken description] stringByTrimmingCharactersInSet: [NSCharacterSet characterSetWithCharactersInString:@"<>"]]; | |
| token = [token stringByReplacingOccurrencesOfString:@" " withString:@""]; | |
| NSLog(@"Device Token %@: ", token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment