Skip to content

Event / callback when app is opened via a notification group #6228

Open
@craiganderson-iotv

Description

@craiganderson-iotv

What feature would you like to see?

As described in react-native-firebase#5716, when the user taps on a notification group, there is no corresponding event / trigger available within the app to know this occurred. It is hinted that this might be a limitation within the Firebase Android SDK itself, rather than an issue with the React Native Firebase library, hence this issue.

How would you use it?

It looks like there is room within the API for a dedicated method when notifications are opened whilst the app is in the background:

public void onMessagesReceived(@NonNull com.google.firebase.messaging.RemoteMessage[]);

It is less clear how this could be approached when a group of notifications are opened whilst the app is quit — I think it is not unreasonable to add a suitable Extra to the existing API method:

public final int onStartCommand(android.content.Intent, int, int);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions