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.

[android] heads-up notification

See original GitHub issue

How to show heads-up notification on android? I am using the following payload from fcm.

{
    to: <deviceToken>,
    priority: 'high',
    data: {
        custom_data_key: 'custom_data_value'
    },
    notification: {
        title: 'Push notification test',
        body: message,
        click_action: 'fcm.ACTION.HELLO',
        sound: 'default'
    }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
evollucommented, Jul 28, 2016

@kayrules all supported feature is here for now. They’ve added a feature request but don’t know when it will be available So if you need head up display, send notification with data only and create notification locally is the only way for now.

1reaction
evollucommented, Jul 14, 2016

opened a ticket to fcm. will keep you updated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Heads-Up Notifications | Android Open Source Project
A notification is a message that Android displays outside an app to provide updates, reminders, and other timely information to users.
Read more >
Heads-up Notifications - Apps on Google Play
With Heads-up, any device can get the heads-up notifications introduced in the Android 5.0 “Lollipop”, no root required. But according to Addictivetips, ...
Read more >
Heads-up Notification - Android Lollipop - Stack Overflow
With Android 5.0 (API level 21), notifications can appear in a small floating window (also called a heads-up notification) when the device is...
Read more >
Simple example of heads-up notification in Android
Beginning with Android 5.0, notifications can briefly appear in a floating window called a heads-up notification. This behavior is normally ...
Read more >
How to display heads-up notifications in Android? #167 - GitHub
In iOS, displayNotifications displays a heads-up, banner notification, in addition to it appearing in the Notification Center. In Android ...
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