-
-
Notifications
You must be signed in to change notification settings - Fork 2k
onNotification handler not being fired #740
Comments
@ndc466 , did you resolve it? i also got the same issues. i have tried some way but it didn't work. |
@vanhungoz No, this is still an open issue/possible bug. |
@ndc466 i realize that it doesn't happen with equal and greater ios 10.3 |
I have this problem on Android when the app is closed or in the background. onNotification is not called |
did you ever get to the bottom of this ? Having same issue with ios11 kind of halted my development now |
@HoogsterInc I spent several hours dealing with this issue on Android the other day, and the thing that got it working was to ensure the message payload object had only a data key and nothing else. All the time I was having troubles, my message payload object had other keys (eg "notification") in addition to data. When that was the case, the message looked different in the Android notifications drawer (large icon was missing), and it didn't trigger onNotification when I tapped it. When I removed all keys other than data, the message looked the same in the notifications drawer as it did when the app was in the foreground, and it triggered onNotification when I tapped it. I also had to take care to ensure Firebase was installed correctly, but simply following the instructions in the readme was enough to get that right. |
Could you paste a sample of your payload? |
@ndc466 is this still an issue? Or did you find a way to solve this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
I have remote push notifications setup correctly using a 3rd party service + APNS and my iOS device is both calling the
onRegister
callback correctly and receiving subsequent notification alerts but theonNotification
handler is not being called at all. This is a problem because it prevents me fromPushNotification.setApplicationIconBadgeNumber()
in an appropriate manner. I'm pretty sure that the handler is not being called at all because, in Xcode, I am not even receiving the provided log output ofonNotification
in the examplePushNotification.configure
code (console.log( 'NOTIFICATION:', notification );
). I am, however, receiving the log output ofonRegister
(console.log( 'TOKEN VALUE: ' + token );
The text was updated successfully, but these errors were encountered: