No popup notification displayed (Notification is hidden in status bar)
See original GitHub issueWARNING: IF YOU IGNORE THIS TEMPLATE, WE’LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Your Environment
- Plugin version: 4.1.0
- Platform: Android
- OS version: Android 7.0
- Device manufacturer / model: Samsung s7 / Moto g
- Cordova version (
cordova -v
): 7.0.1 - Cordova platform version (
cordova platform ls
): Android 6.2.3 - Plugin config ionic?
- Ionic Version (if using Ionic) 3.6.0
Expected Behavior
Tell us what should happen When app is in the background, an alert banner appears (like a popup notification) that when selected takes you to the app.
Actual Behavior
Tell us what happens instead When app is in the background, we receive an alert, but all that appears is an icon in the status bar, and no visible notification alert.
Steps to Reproduce
Reproduce this issue; include code to reproduce, if relevant
- … close app
- … set off the scheduled notification
- … receive badge icon and no banner alert
- …
Context
What were you trying to do? alert users that something has happened
Debug logs
Include iOS / Android logs
N/A
- ios XCode logs
- Android: $ adb logcat
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to hide the content of notifications on Android
Next, tap on Notifications and not the switch next to it. To hide the message content in the Notification bar, make sure the...
Read more >How To Fix WhatsApp Notification Not Showing On ... - YouTube
WhatsApp Notification not showing on your Android phone Status Bar, Lock screen, and home screen? In this video tutorial, we will show you ......
Read more >android no notification popup in statusbar - Stack Overflow
Hope this helps : You need to call notify() method to display notification in your notification tray of your device. Below is the...
Read more >Control notifications on Android - Google Support
Open your phone's Settings app. · Tap Apps & notifications and then Notifications. · Under "Lock screen," tap Notifications on lock screen or...
Read more >2 Settings You Need to Enable on Android 11 for Better ...
If you go to Settings –> Apps & notifications –> Notifications –> Advanced, you can enable the "Hide silent icons in the status...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please use latest master branch and set priority to greater than zero.
I discovered that for us the problem was because on the ‘trigger’ event we recalculate/re-schedule the notifications and clear the ‘old’ ones because we have to keep always the next 50 notifications keep alive.
But on android the ‘trigger’ event is fired in the application while the app is in background mode, what caused the actually triggered notification was cleared by the recalculate of the notifications. Therefore in the notification center it showed, but it was removed also in same time.
After I modified our ‘trigger’ listener to watch the status also, it works fine for us.