You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the logic of extracting the pushToken from Foundation.Data is not correct. Since you are getting the description of the deviceToken (deviceToken.description.trimmingCharac......), it is always storing it as "32bytes".
I found the below code working.
var tokenString = ""
for i in 0..<deviceToken.count {
tokenString += String(format: "%02.2hhx", arguments: [deviceToken[i]])
}
print("Device Token:", tokenString)
The text was updated successfully, but these errors were encountered:
I see the logic of extracting the pushToken from Foundation.Data is not correct. Since you are getting the description of the deviceToken (deviceToken.description.trimmingCharac......), it is always storing it as "32bytes".
I found the below code working.
var tokenString = ""
The text was updated successfully, but these errors were encountered: