mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
added logs for notification receiving
This commit is contained in:
parent
b5f72ad000
commit
83b2da00e2
@ -479,12 +479,14 @@ class ApplicationContainer extends Component {
|
|||||||
PushNotification.cancelAllLocalNotifications();
|
PushNotification.cancelAllLocalNotifications();
|
||||||
|
|
||||||
firebaseOnMessageListener = messaging().onMessage((remoteMessage) => {
|
firebaseOnMessageListener = messaging().onMessage((remoteMessage) => {
|
||||||
|
console.log('Notification Received: foreground', remoteMessage);
|
||||||
this._showNotificationToast(remoteMessage);
|
this._showNotificationToast(remoteMessage);
|
||||||
this._pushNavigate(remoteMessage);
|
this._pushNavigate(remoteMessage);
|
||||||
});
|
});
|
||||||
|
|
||||||
firebaseOnNotificationOpenedAppListener = messaging().onNotificationOpenedApp(
|
firebaseOnNotificationOpenedAppListener = messaging().onNotificationOpenedApp(
|
||||||
(remoteMessage) => {
|
(remoteMessage) => {
|
||||||
|
console.log('Notification Received, notification oped app:', remoteMessage);
|
||||||
this._pushNavigate(remoteMessage);
|
this._pushNavigate(remoteMessage);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user