-
-
Save nursarowar/2ec0e6fa98a9abdb415c83e7f914e551 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