I am implementing push notifications. I\'d like to save my APNS Token as a String.
- (void)application:(UIApplication *)application didRegisterForRemoteNotif
token as text...
let tat = deviceToken.map{ data in String(format: "%02.2hhx", data) }.joined()
or if you prefer
let tat2 = deviceToken.map { String(format: "%02.2hhx", $0) }.joined()
(result is the same)