retrieve FCM token

This commit is contained in:
Akinwale Ariwodola 2019-10-11 14:03:14 +01:00
parent ab97be6a4d
commit 50cab8722f

View file

@ -137,6 +137,9 @@ class SplashScreen extends React.PureComponent {
filteredOutpointsSubscribe(); filteredOutpointsSubscribe();
checkSubscriptionsInit(); checkSubscriptionsInit();
NativeModules.Firebase.getMessagingToken().then(fcmToken => {
console.log('fcmtoken=' + fcmToken);
// get user settings interval // get user settings interval
this.getUserSettings(); this.getUserSettings();
setInterval(() => this.getUserSettings(), SETTINGS_GET_INTERVAL); setInterval(() => this.getUserSettings(), SETTINGS_GET_INTERVAL);
@ -156,6 +159,7 @@ class SplashScreen extends React.PureComponent {
}); });
} }
}); });
});
}; };
handleAccountUnlockFailed() { handleAccountUnlockFailed() {