push-plugin icon indicating copy to clipboard operation
push-plugin copied to clipboard

Access token invalid format on ios

Open learwebit opened this issue 6 years ago • 1 comments

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?

learwebit avatar May 24 '18 12:05 learwebit

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"). screen shot 2018-06-04 at 12 46 12 pm

jackwaller avatar Jun 04 '18 02:06 jackwaller