EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

iOS Token doesn't work and seems too short #1767

Closed jogotronic closed 3 years ago

jogotronic commented 3 years ago

Hi there,

I'm using the latest version of the plugin (11.1.3) and then call messaging.registerForPushNotifications(). On Android I receive a token that looks like cNhN9M2nSXw:APA91bGzErsRVrXH2G_u8iZ6OnS5u0gUnaYO0kdLeo56lD1RXdAfle0-YaXxEszkfH4DU8kTF3GvucjA4rVu1YE6fQOh0hD6BZpgYDDxnKM4GgLlfe1_0UJu44rNhByvuQufj_UbYEUQ, which WORKS! On iOS I get a shorter token that looks like d64aa284ce174a6237b7a0f4c41e380ddc2d373472b12b719c3d5b7f2c360b61, which DOESN'T WORK. Does anyone have an idea what's going wrong here and why I get that short token that doesn't work (tested with Firebase backend and sending from Node-server)?

Thanks!