question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No banner shows up on Android even see the payload in the log

See original GitHub issue

Could see this in console:

NotificationHandler: {"data": {"message": "Sample message for Android endpoints"}, "finish": [Function finish], "foreground": true, "id": "-306621741", "userInteraction": false}

But no banner when the app is in the background on Android. Does anyone know why?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Dallas62commented, Apr 20, 2021

Please refer to the FireBase notification

0reactions
selfcreatorcommented, Apr 20, 2021

Thanks @Dallas62, I checked the documentation about the firebase notification, indeed it was a data notification… For anyone may encounter this in the future, please refer to: https://firebase.google.com/docs/cloud-messaging/send-message#notification-message BTW, I used AWS SNS for testing the android push notification, and the default data template doesn’t work well…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle notification when app in background in Firebase
When you are in background, FCM will showing notification in system tray based on the info from notification payload.
Read more >
Notifications Not Shown - Mobile Push
Common reasons why Mobile Push notifications are not showing on your device. ... Android Settings App > Notifications > Your App you should...
Read more >
Control notifications on Android - Google Support
Notifications show when you swipe down from the top of your screen. Some notifications&nbs. ... Some of these steps work only on Android...
Read more >
flutter_local_notifications | Flutter Package - Pub.dev
Compatibility with firebase_messaging; Scheduled Android notifications; iOS pending ... If they do still show, you might not see the icon you specified.
Read more >
Send an image in the notification payload - Firebase - Google
Catch up on everything announced at Firebase Summit, and learn how Firebase can help you accelerate app development and run your app with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found