retrieve FCM token
This commit is contained in:
parent
ab97be6a4d
commit
50cab8722f
1 changed files with 21 additions and 17 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue