flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase messaging] - Android - Notification group and icon app

Open sergitovar91 opened this issue 6 years ago • 6 comments

Problem

When I have more than 3 notifications on the device then the notifications are grouped so when I click on the notification group the app is opened but the notifications are not processed the same happen when I open my app from the icon.

What do I expect ?

When I click on the notification group or in the icon of my app then the app should process all the notifications by onResume, onLaunch or onMessage callbacks.

What I would like to fix

ezgif com-gif-maker

What I have to do to read each notification

Screen Recording 2020-10-01 at 17 07 43

How did I try to fix it ?

  • I created a new flutter project, just flutter with fcm
  • I followed all the steps to set up firebase cloud messaging even onBackground callback but it never was called
  • I created my on notification channel but... it didn't work as I expected

Please I would like to know how I can read the notifications all togethers... I think it is not complicated but if the callbacks (onResume, onLaunch and onMessage) are not called then I don't know what to do...

Pubspec.yaml

firebase_core: "^0.5.0" firebase_messaging: "^7.0.0"

Flutter doctor

[✓] Flutter (Channel master, 1.22.0-10.0.pre.450, on Mac OS X 10.15.7 19H2 x86_64, locale en-ES) • Flutter version 1.22.0-10.0.pre.450 at /.../flutter • Framework revision 9d41ddcbac (9 hours ago), 2020-10-01 08:01:58 +0200 • Engine revision 612acf349e • Dart version 2.11.0 (build 2.11.0-180.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at /.../Library/Android/sdk • Platform android-29, build-tools 29.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.0.1, Build version 12A7300 • CocoaPods version 1.9.1

[✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 50.0.1 • Dart plugin version 193.7547 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!

sergitovar91 avatar Oct 01 '20 15:10 sergitovar91

Hi @sergitovar91 app should process all the notifications by onResume, onLaunch or onMessage callbacks. Does this behavior on native apps? I would think each notification are treated separately for on these callbacks Can you provide some documentation for this form elsewhere? Thank you

TahaTesser avatar Oct 02 '20 15:10 TahaTesser

Hey @sergitovar91. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Oct 13 '20 01:10 google-oss-bot

Hi @TahaTesser !!

I didn't find any documentation about it app should process all the notifications by onResume, onLaunch or onMessage callbacks. but it is what I guess because what other options I have to do what I want ?

Thanks !!!

sergitovar91 avatar Oct 15 '20 08:10 sergitovar91

same problem for me

pa2codes avatar Dec 11 '20 10:12 pa2codes

Hey @sergitovar91, are you still experiencing this issue? We're quite a few major versions removed for the messaging package since you raised the issue. For instance, onResume & onLaunch have been removed for quite some time now.

russellwheatley avatar Jul 02 '21 14:07 russellwheatley

I'm going to assume the major updates have resolved the issue due to lack of response. Will reopen if this is not the case.

russellwheatley avatar Oct 07 '21 08:10 russellwheatley