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

[firebase_messaging] All push notifications never appear in system tray, but are logged as 'Recently dismissed" #3134

Closed
jt274 opened this issue Aug 10, 2020 · 3 comments · Fixed by #4012
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot Stale Issue with no recent activity

Comments

@jt274
Copy link

jt274 commented Aug 10, 2020

Describe the bug
I am using firebase_messaging with a flutter app. This app has not been worked on in a few months, but push notifications were previously working as expected. Sending a notification through a cloud function, or a test notification through the Firebase console would come through 100% of the time, and if the app was in the background the notification would play a sound and appear in the system tray (on virtual and physical devices).

After running the app recently, push notifications do not go into the system tray under any circumstances. In an Android 11 virtual device, the notification history for the device shows the notifications come through, but are listed under "Recently dismissed". They are placed here immediately and there is no sound or notification shown to the user.

I had recently moved from firebase_messaging 5.1.4 to 6.0.16. But moving back to 5.1.4 did not resolve the issue.

If the app is in the foreground, onMessage fires successfully. onBackgroundMessage was also added as per the readme instructions, but it does not fire under any circumstances (app in foreground, background, or closed). And again, under no circumstances do notifications go to the system tray. The notification from the cloud function is the same as before:

notification: { title: title, body: body, }, data: { type: dataType, content: dataContent, click_action: 'FLUTTER_NOTIFICATION_CLICK', }, android: { notification: { channel_id: 'mychannel', }, priority: 'high', }, token: token };

Expected behavior
Test notification sent from Firebase console should enter the device notification system tray and play a sound, remaining until dismissed by the user.

Flutter doctor
Run flutter doctor and paste the output below:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.19041.388], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[√] Android Studio (version 4.0)
[√] Connected device (2 available)

• No issues found!
@TahaTesser
Copy link

Hi @jt274
Using official example on firebase_messaging: ^6.0.16, notifications appear normal when is terminated

Screenshot_1597233272

flutter doctor -v
[✓] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.19041.388], locale en-US)
    • Flutter version 1.20.1 at C:\Code\flutter_stable
    • Framework revision 2ae34518b8 (6 days ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Code\android-studio
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.47.3)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[✓] Connected device (1 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

• No issues found!

Can you please provide your flutter run --verbose and a complete reproducible minimal code sample and steps by steps to reproduce this issue on Android 11 emulator
Thank you

@TahaTesser TahaTesser added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Aug 12, 2020
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Aug 21, 2020
@google-oss-bot
Copy link

Hey @jt274. 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
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@jt274 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot Stale Issue with no recent activity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants