Open steosoft opened 5 years ago
I am having this problem aswell, onNotificationOpen is not called when the app is in foreground.
Any update here? or any ionicnative plugin which we can use, which supports onMessage instead of just onNotificationOpen?
On Android when application is in foreground, incoming push notification is not calling callback function which is set by:
and also not showing notification. On iOS notification shows and also callback if fired.
In Android native application method
onMessageReceived(RemoteMessage remoteMessage)
is called when app is in foreground and we can access to incoming notification by callingremoteMessage.getNotification()
Cordova lib should also run callback as in native application when in foreground.