Last active
August 29, 2015 14:19
-
-
Save nvkiet/1a9e2f9c5f763b6fa6b7 to your computer and use it in GitHub Desktop.
ConvertNSDataToNSString
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* filePath = [[NSBundle mainBundle] pathForResource:@"ck" | |
| ofType:@"pem"]; | |
| NSData *p12data = [NSData dataWithContentsOfFile:certificatePath]; | |
| NSString *apnsToken = [p12data base64EncodedString]; | |
| NSDictionary *parameters = @{@"apnsToken": apnsToken}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment