react-native-notifications: [v3] registerNotificationOpened not triggered on Android
I previously had an issue with sending data to my device (https://github.com/wix/react-native-notifications/issues/497). Solved this by changing the payload to (Amazon SNS):
{
"GCM":" {
\"notification\": {
\"title\": \"title\",
\"body\": \"Sample message for Android endpoints\"
},
}
But I still think I the docs can be more clear about how to implement a custom FirebaseMessagingService. Right now I want to send data to my app, I’m not sure if this works without a custom FirebaseMessagingService or how to implement one.
Although with the custom messages send via Amazon SNS are now shown on my Android device, the registerNotificationOpened event is not triggered when I click the notification (on iOS it is). How can I resolve this?
I want to open a certain screen when opening the notification based on data send with the notification.
Do I have to add the custom FirebaseMessagingService to my app to handle data? How can I implement this? Tried sending another payload as stated in the docs (https://firebase.google.com/docs/cloud-messaging/concept-options) with the apns key, but it didn’t work out as expected. The registerNotificationOpened was not triggered and the data was not parsed in the same way as on iOS where everything works without any hassle.
Thanks for the help in advance.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (1 by maintainers)
Maybe this PR resolves the issue https://github.com/wix/react-native-notifications/pull/527/files
Having the same issues! Does anybody have a fix for this ?
Unfortunately I wasn’t able to fix the issue yet as well. Really hope to receive an update from the library maintainers soon.
I am having the same issue.
Just applied fix by @ttkien. Works for me. in DEV at least.
One more here! 🙃
Same Here
@juddey everything I have done, still does not work.