Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

No events for notifications displayed on background #220

Open
@fgagneten

Description

@fgagneten

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions