-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fcm token not available on first load react native (android) #1021
Comments
do you have same issue in debug mode? |
@evollu on the emulator i dont have this problem |
@evollu in release build getting same issues |
it takes a while to get firebase token. i wonder if it could be a firebase bug |
Okk but now what should I do to handle this condition , can you please help me out |
listen on |
Ok i will try it and let you know if its works or not, |
@evollu Thank you very much, its working fine in release build. |
@Seemapadiya I am facing the same issue. Could you please share code snippet? |
@Udbhav12 previously i was used this method on my app start and its working fine in debug |
@Seemapadiya Did you save parameter Example:
|
Yes direct store in to my model class |
@evollu please help me i am not getting FCM token in release apk below is my code FCM.on('FCMTokenRefreshed', token => {}); componentDidMount() { |
after install the apk the app dont get fcm token
only after close the app and open again everything is fine.
FCM.getFCMToken().then(token => {
console.log("TOKEN (getFCMToken)", token);
//send to the server
});
please help :)
The text was updated successfully, but these errors were encountered: