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