No events for notifications displayed on background #220
Description
After reading the following doc:
https://github.com/invertase/react-native-firebase-docs/issues
I could implement the notificacion services like a charm.
After a while playing with notifications I detected a scenario that I can't control:
Notification received on background.
I have a reaction when notification is received so if a specific view is displaying I refresh autommatically some content. Great, that works perfectly (on foreground) with the following event:
firebase.notifications().onNotificationDisplayed
However, It's typically while a screen is displaying, the user (wainting for a notification) put the app on background and in the meantime do something else.
When a notification is received on background, the user doesn't touch the notification but go back to the app from the recent list (and here is the problem). That view should have been refreshed when the notification was received on background. Why the screen was not updated with the reaction? Because I don't have an event to trigger the reaction when a notification is received on background (not clicked, not tapped, just received).
I would like to know how most of you can handle this can of scenario.
Thanks