Kalle
Kalle

Reputation: 262

Push Notification not displayed on Android

I have problems getting push notifications to work correctly on Android.

The base system is working fine, the notifications are delivered and received. My test devices play a sound and show the app icon in the status bar at top of screen, and i can view the notification by swiping down.

But there is no popup shown!

What do i have to do to make this work?

Upvotes: 0

Views: 597

Answers (2)

Abdullah Z Khan
Abdullah Z Khan

Reputation: 1286

Use priority and importance high for notification as specified by: Heads-up

Upvotes: 1

snachmsm
snachmsm

Reputation: 19223

this popup is called "heads-up notification" and you will get it only for Notifications posted on Channel with importance set to IMPORTANCE_HIGH (or high priority Notification itself on lower OS versions), according to DOCs

Example conditions that might trigger heads-up notifications include the following:

  • The user's activity is in fullscreen mode (the app uses fullScreenIntent).
  • The notification has high priority and uses ringtones or vibrations on devices running Android 7.1 (API level 25) and lower.
  • The notification channel has high importance on devices running Android 8.0 (API level 26) and higher.

Upvotes: 1

Related Questions