Jd Prajapati Jd Prajapati - 29 days ago 10x
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?


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: