Obs.: firebase needs to inject the data param as well, for this we added a handleIntent override for the class that extends FirebaseMessagingService, further PRs will be necessary on firebase side. In case of react-native-firebase there is more info here.
Fixes: https://github.com/invertase/notifee/issues/1081
This fix avoids the need of sending a second data-only notification, in a similar behavior as iOS. More info on firebase data payload here.
Based on discussions from https://github.com/invertase/notifee/issues/393#issuecomment-1120260319 and using similar solution as here we are injecting the data param on the method getDisplayedNotifications.
Obs.: firebase needs to inject the data param as well, for this we added a handleIntent override for the class that extends FirebaseMessagingService, further PRs will be necessary on firebase side. In case of react-native-firebase there is more info here.