-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
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!
Activity
google-oss-bot commentedon Feb 11, 2025
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
SelaseKay commentedon Feb 11, 2025
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 commentedon Feb 11, 2025
Hi @TharushiSewmini, I observed the same behavior when testing with the Android SDK. For further clarification on this issue, you can report it here.
flappygod commentedon Mar 5, 2025
The onReceive method of FlutterFirebaseMessagingReceiver is triggered only once after the app is installed, even though the notification is successfully displayed in the notification bar. This behavior is unexpected and requires further investigation to determine the cause.