Questions tagged [heads-up-notifications]

High-priority notifications introduced in Android 5.0

Heads-up notifications were introduced in Android 5.0. These notifications are high-priority notifications and are presented to users for a short period of time with an expanded layout exposing possible actions.

After this period of time, the notification retreats to the notification shade. If a notification's priority is flagged as High, Max, or full-screen, it gets a heads-up notification.

Good examples of heads-up notifications:

  • Incoming phone call when using a device
  • Alarm when using a device
  • New SMS message
  • Low battery
52 questions
1
vote
1 answer

Android 10 fullscreen intent launched after turning the device off during heads-up notification

We use heads up notification together with fullscreen intent to show important update to end user when he receives push message from server. This immersive behavior is intentional. The activity triggered by the fullscreen intent also turns the…
d.aemon
  • 761
  • 1
  • 7
  • 20
1
vote
1 answer

Capacitor local notification heads up

I'm using Capacitor with Ionic 4 Framework. When I schedule a local notification, it appears in the statusbar correctly with the passed parameters, but it does not appear like a popup. I was reading about this and is named "Heads up" notification,…
1
vote
0 answers

Android Notifications: Heads Up & Lock Screen Notification

I'm using the following code to show both heads up & lock screen notification but couldn't get it working. Can anyone find out what possibly could go wrong? It only works if I turn on the heads up & lock screen notification from phone's settings.…
1
vote
1 answer

Heads-up notification for xiaomi and LeEco like devices

I am working on heads up notification. My code is working fine for all devices but not with xiaomi and LeEco like devices which are above android 5.1. My code is: RemoteViews contentView = null; contentView = new…
Kavita Patil
  • 1,784
  • 1
  • 17
  • 30
1
vote
2 answers

notification does not appear

The code bellow is supposed to show a heads up notification, but it is not appearing. However, the MessageActivity is starting without the notification shows up. This activity was supposed to start just when clicking the notification. This problem…
1
vote
1 answer

pending intent on notification not working

I'm trying to setup a heads up notification that has a button, when the button is clicked a sms will be sent in the background, or if the actual notification is clicked it will open up an activity(this part i can do, no problem). this is my code…
0
votes
0 answers

Heads up/ popup push notification not showing in android kotlin

This is my NotificationMessagingService I implemented all code but the pop-up notification is not showing. also please give me idea how I show the notification image that comes from backend class NotificationMessagingService :…
0
votes
0 answers

How to show heads-up notification instead of full screen intent while the screen is not locked on Android

I'm trying to make persistent heads-up notifications with full-screen intent same as the Messenger app. Messenger behavior: An app is showing: show heads-up At home screen, not showing any app and not locked: show heads-up When locked: show…
dante
  • 984
  • 3
  • 10
  • 24
0
votes
1 answer

Heads-up Notification not showing in android 12

I have added two action in this head-up notification Answer and Reject . which is worked in all device under android-12. But in android 12 this type of notification not showing . what the exact problem i don't know I read documentation but not found…
0
votes
1 answer

Android push header/heads-up notification doesn't work

I am currently trying to get a header notification on a Nexus S (API 29), but with no success. I've seen some threads with various solutions, but none of them worked. The code is as follows: Context applicationContext = getApplicationContext(); …
0
votes
1 answer

Android heads-up notification not showing after disable and enable it on application settings

I made heads up notification on my application and it's working well. But when I disable -> enable it on my application notification settings, I can not see heads up notification anymore. (It still shows on notification bar, makes sound and…
pokoso
  • 997
  • 1
  • 6
  • 12
0
votes
2 answers

What is the right format of the icon in notification above lollipop?

I have created heads up notification in my app. In that I have used my app icon in notification also. But that didn't displayed. Instead of that getting square shape icon. Searched regarding that issue and found that above lollipop this occurs. Also…
Sandhiya
  • 339
  • 2
  • 14
0
votes
0 answers

Using Bubble notification for incoming call

Below is my code for bubble notification, Notification.BubbleMetadata bubbleData = new Notification.BubbleMetadata.Builder() .setIcon(Icon.createWithResource(this, R.drawable.notification_logo)) …
0
votes
0 answers

How the android application knows when the heads up notification disappears?

We need to display the heads up notification when our application receives a notification and application is running in foreground. If application receives any other notifications while the current notification is in display, we need to queue the…
kadina
  • 5,042
  • 4
  • 42
  • 83
0
votes
1 answer

heads up notification not showing during call in specific devices

I am developing an app which shows a heads up notification when an incoming or outgoing call is made (tested and working when not in a call). The feature is perfectly working on many devices(Xiomi, Huawei, Oppo devices). But in the latest Samsung…