Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
craiganderson-iotv opened this issue Sep 5, 2024 · 1 comment
Open
Labels

Comments

@craiganderson-iotv
Copy link

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);
@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants