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

[Question] Some help regarding the notification on background state #1

Open
burekas7 opened this issue Sep 18, 2023 · 0 comments
Open

Comments

@burekas7
Copy link

According to this issue in stackoverflow:
https://stackoverflow.com/questions/72894846/flutter-fcm-onbackgroundmessage-vs-onmessageopenedapp

What is actually the difference between these two methods when handling background notifications?

  • FirebaseMessaging.onBackgroundMessage
  • FirebaseMessaging.onMessageOpenedApp

The first one should be fired before we are tapping on the notification, right?
The second one should be fired after we are tapping, right?

So why do I need the first method "onBackgroundMessage"?

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

No branches or pull requests

1 participant