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

notification_open event not triggered properly when flutter app in background mode #17072

Open
TharushiSewmini opened this issue Feb 11, 2025 · 3 comments
Labels
blocked: firebase-sdk platform: android Issues / PRs which are specifically for Android. plugin: messaging type: bug Something isn't working

Comments

@TharushiSewmini
Copy link

Description

The issue is as follows:

When transitioning the app from the live foreground mode to the background, there are two ways to do so:

Pressing the home button for quick navigation.
Pressing the back button multiple times to exit.
If the app is moved to the background using the home button, when a push notification arrives and I tap on it, the onMessageOpenedApp event is triggered, but the notification_open event is not triggered.
However, if the app is moved to the background by pressing the back button multiple times, when a new notification arrives and I tap on it, the notification_open event is triggered.
This means that the count for notification_open will be updated only in the second case. I tested it only using android. I don't know how about IOS

That is the issue I faced when I did my project.
versions are
Flutter 3.27.3
firebase_core: ^3.10.1
firebase_analytics: ^11.2.0
firebase_messaging: ^15.0.3

Reproducing the issue

No response

Firebase SDK Version

3.6.0

Xcode Version

Installation Method

Swift Package Manager

Firebase Product(s)

Analytics, Messaging

Targeted Platforms

N/A

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

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

@paulb777 paulb777 transferred this issue from firebase/firebase-ios-sdk Feb 11, 2025
@SelaseKay SelaseKay added plugin: messaging platform: android Issues / PRs which are specifically for Android. Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Feb 11, 2025
@SelaseKay
Copy link
Contributor

Hi @TharushiSewmini, thanks for the report. I was able to reproduce the issue and suspect it might be originating from the underlying Android SDK. We'll investigate further.

@SelaseKay
Copy link
Contributor

Hi @TharushiSewmini, I observed the same behavior when testing with the Android SDK. For further clarification on this issue, you can report it here.

@SelaseKay SelaseKay added blocked: firebase-sdk and removed Needs Attention This issue needs maintainer attention. labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: firebase-sdk platform: android Issues / PRs which are specifically for Android. plugin: messaging type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants