Describe the bug
For APNS app i am unable to get notification if hexadecimal representation of the token used.
If in this code i change
device_token = base64.b64decode(device.pushkey).hex() -> device_token = device.pushkey
then it works as expected. I know that from Troubleshoot it was because of the backward compatibility, but then what i am doing wrong here? To be clear, by decoding and encoding my device token(base64.b64..) i do get my initial token.
Can it be related to that?
https://developer.apple.com/news/?id=uzyxiriy
To Reproduce
Get any base64 token from device
Call sygnal api with this base64 token
you will get BadDeviceToken
Expected behavior
Device should get the notification
Describe the bug For APNS app i am unable to get notification if hexadecimal representation of the token used.
If in this code i change
device_token = base64.b64decode(device.pushkey).hex() -> device_token = device.pushkey
then it works as expected. I know that from Troubleshoot it was because of the backward compatibility, but then what i am doing wrong here? To be clear, by decoding and encoding my device token(base64.b64..) i do get my initial token. Can it be related to that? https://developer.apple.com/news/?id=uzyxiriyTo Reproduce
Expected behavior Device should get the notification
Device IPhone 12 Pro Max
used p8 certificate sandbox environment