Created
July 29, 2015 00:39
-
-
Save ataka/aa8feb023c1dcc5183e3 to your computer and use it in GitHub Desktop.
Print deviceToken to console
This file contains 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
func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) { | |
let trimCharacterSet = NSCharacterSet(charactersInString: "<>"); | |
let deviceTokenString = deviceToken.description.stringByTrimmingCharactersInSet(trimCharacterSet) | |
.stringByReplacingOccurrencesOfString(" ", withString: "", options: nil, range: nil); | |
println("application:didRegisterForRemoteNotificationWithDeviceToken: " + deviceTokenString); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment