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.

Notification not show on head-up

See original GitHub issue

Provide a general summary of the issue.

Your Environment

  • Plugin version:^0.9.0-beta.2
  • Platform:Android
  • OS version:Windows 10 64 bit
  • Cordova version (cordova -v): 8.0.0
  • Cordova platform version (cordova platform ls): Android 7.0
  • Ionic Version (if using Ionic): 3.1.9

Expected Behavior

Show Notification on head-up on adnroid device

Actual Behavior

it;s not show popup on header of device, it just show small icon for notification on top left of device

Steps to Reproduce

this is my code

 this.localNotifications.schedule({
  id:1,
  text: 'Delayed ILocalNotification',
  trigger: {at: new Date(new Date().getTime() + 3600)},
  led: 'FF0000',
  priority:1,
  sound: 'file://assets/sound/sound1.mp3' });

Context

I already tried to different on device, it result not different

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

4reactions
olivermuccommented, Oct 19, 2018

Just tested it on beta 3. In order for heads-up to work, it would appear that these needed to be true:

  • foreground: true
  • priority: 1 (or 2)
  • sound: either true, or a path that correctly resolves to a playable file. In your case, I am not sure if sound1.mp3 exists.

tested all variations of code and parameters, read through all posts here. no, head-up display of notifications definitely does not work with local.notifications beta.3 (Android 8.1.0)

1reaction
ebhsgitcommented, Nov 13, 2019

Nope. I found the cause of the issue, as noted in my earlier comment. I don’t know the plugin well enough to implement a generic fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android heads-up notification not showing - Stack Overflow
Long press a notification, in the notification bar. · Go to: Settings > Installed apps > Select your app > Notifications · Improving...
Read more >
Head-up notification is not displayed [224358403]
1.Using "setFullScreenIntent " , it generate a head-up notification. · 2.Clear head-up notifications by flicking up. · 3.If you try to generate a...
Read more >
Heads-up notifications not displaying? : r/android_beta - Reddit
If you have the same as me - check to make sure "Pop on screen" is switched on, by long pressing the notification...
Read more >
Error Heads-up notification is not displayed in Android #425
Error Heads-up notification is not displayed in Android: When I update version 3.0.0 oneSignal on Android the Heads-up notification is not ...
Read more >
Heads-Up Notifications | Android Open Source Project
In the Android Automotive OS, a notification can be displayed either as a Heads-Up Notification (HUN) or in the Notification panel (or in ......
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