When my app is closed, or runs in the background, and I open a notification, it is not handled. In fact, it doesn’t even call the handler. (push.on('notification')) however, when I am inside the app, it works.
Normally, I initialise push handlers after the user is logged in (he doesn’t have to manually, server just verifies a token), but even if I set it exactly on platform.ready it still does
Android. On iOS it works perfectly as intended, but on Android, notifications from outside doesn’t work… (same code, pretty sure android should also work from outside)
That’s very interesting!
I am using FCM (using node fcm-push) and am sending my payload in data, and in notification I just send: title, tag, color, body, sound (not relevant app data, just notification thing)
Is that not good?
Not much to read on the subject…
How did you solved it. i am getting same issue. i am receiving notifications in iOS in all states(minimized,killed or closed, open). but in android i am able to receive notification when app is open and minimized but not receiving if app is killed or closed.