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 popup notification displayed (Notification is hidden in status bar)

See original GitHub issue

WARNING: 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

  1. … close app
  2. … set off the scheduled notification
  3. … 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
katzercommented, Oct 30, 2017

Please use latest master branch and set priority to greater than zero.

schedule({ ..., priority: 1 })
1reaction
stevesumcommented, Sep 5, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

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