Jd Prajapati Jd Prajapati - 1 year ago 122
Android Question

FCM Token is not generating in some android devices

I was having issues in GCM, so i migrates to FCM but I am still getting issues related to token.

I launched my updated app and I checked that there is 300 new users,
200 of them are getting tokens and 100 are not getting any token, it's a very critical issue.

Any Solutions of null token?

Answer Source

You get your FCM token from MyInstanceIDListenerService class onTokenRefresh() method on every fresh installation.

Or you can also get FCM token with this line of code:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download