let tokenChars = UnsafePointer<CChar>(deviceToken.bytes)
var tokenString = ""
for i in 0..<deviceToken.length {
tokenString += String(format: "%02.2hhx", arguments: [tokenChars[i]])
}
DDLogDebug("Device Token: \(tokenString)")
^ This no longer works. Mostly because there is no deviceToken.bytes anymore.
I tried to figure out how to use .withUnsafeBytes, but am failing.
Any help would be fantastic, I just need the string version of the device token, thanks!