Use GCM Token for push messages in FCM

前端 未结 3 1581
再見小時候
再見小時候 2021-01-06 13:53

Currently we have devices using old GCM implementation.

Does anyone know if it\'s possible to use old existing GCM tokens when sending push messages using firebase c

3条回答
  •  情歌与酒
    2021-01-06 14:45

    GCM token and firebase token are not the same. I did a test and subscribed to both services and saw that both tokens are different. you'll have to be very careful when using tokens to make sure. some 3rd party libraries still want to use GCM tokens while others are using firebase.

    further, if you take a GCM token and try to use it in the firebase cloud messaging console to send a message, it might not be received by the android client. this was my case. i had to ensure i had a FCM token.

提交回复
热议问题