Created
November 7, 2018 13:04
-
-
Save st-small/e8d21e4d156c14b93ada70aeb772fecc to your computer and use it in GitHub Desktop.
Print device token
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
let tokenParts = deviceToken.map { data -> String in | |
return String(format: "%02.2hhx", data) | |
} | |
let token = tokenParts.joined() | |
print("Device Token: \(token)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment