push-plugin
push-plugin copied to clipboard
Access token invalid format on ios
I use in your plugin in android, and all work well. But on ios - I do not get notification. I try to send to specific device, but then firebase say that the sending failed because : "Invalid registration token. Check the token format." I put there the text that printed after the words: "Device registered. Access token: ".
Any help?
I believe this is because the device has returned an APN token - First you will need to be convert to a FCM token. You can follow this tutorial
https://www.thepolyglotdeveloper.com/2017/06/apns-tokens-fcm-tokens-simple-http/
You can then test this using postman or similar.
An example. Make sure you place the correct authorisation header ("key=Firebase server key").