evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

Didn't get token in Android #1028

Open NirmalsinhRathod opened 5 years ago

NirmalsinhRathod commented 5 years ago

I did all the necessary steps from create a new project into Firebase to integrate into React and Android Studios. Everything is working fine at iOS side. But in android, I am not able to get token:

FCM.getFCMToken().then(token => { alert("TOKEN (getFCMToken)", token); //send to the server });

I just regenerate the SHA fingerprints and check it again. But doesn't work for me?

Any solutions?

NirmalsinhRathod commented 5 years ago

@evollu I tried to create a new application into firebase. But still getting same issue.

evollu commented 5 years ago

create a new application into firebase?

evollu commented 5 years ago

do you get token though Firebase's native example?