Created
July 6, 2020 02:45
-
-
Save tokorom/2587be90b91d148a6ce534517afa67c8 to your computer and use it in GitHub Desktop.
Code to convert the data of a device token into a string, which was introduced in the WWDC20 session
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 tokenComponents = token.map { data in String(format: "%02.2hhx", data) } | |
let deviceTokenString = tokenComponents.joined() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment