Skip to content

fcm token not available on first load react native (android)  #1021

@roeib

Description

@roeib
"react-native": "0.55.4",
"react-native-fcm": "^14.1.3",
All Android  devices

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
});

FCM.on('FCMTokenRefreshed', token => {
  console.log("tokewn", token);
      //send to the server
});

please help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions