How to pin an android ongoing notification - android-notifications

I want to create an andriod ongoing notification that will always stay on the top of all other notification including notifications that will arrive after the notification were shown.
What should I do to acheive this behaviour?

Related

Wake up react native app with a fcm notification

Wake up react native app to obtain fcm token push notification firebase
Wake up device (turn on screen) when notifications arrived on Android Current Situation
When notifications arrived, sounds and vibrations are working, but screen is off.

Handle Notification data without click on notification in ionic 3 (One signal push notification)

i am using Onesignal in ionic 3. I am getting notification properly when the app is in foreground. When I receive a notification in background i am getting the data in the notification only after tapping the notification. But i want to get the data without tapping on the notification.
You're looking for Silent Notifications (Silent Notifications are background notifications that do not show any message on the device)
Right now, you're likely using the onOpened handler. You will need to set up a service extension and be prepared to have to write native code!
https://documentation.onesignal.com/docs/silent-notifications

Push notification for android stays always at bottom

The push notification for my app always stays at the bottom of the notification tray screen no matter when it is sent. I am using Firebase Cloud Messaging. Is there something that I can do so that the app's push notifications come to top of the notification tray when a device receives it?

Push Notification not coming when app got cleared from background in Xiaomi devices

I have a created a chat application which sends push notifications to users. In Xiaomi devices(Mine is Mi4i) I am receiving push notification only if my app is in background. If i cleared the app from background or recent list push notification doesn't come.
I have tried turning on Auto start functionality as mentioned by few posts but still no notifications received.
Note : Every other brand devices are receiving notifications with the same scenario nicely.
I wonder how do i do this, Does anyone has snippets which helps me?

Tapping on the app icon does not display the notification in the app

I am using the Event source-based notifications in hybrid applications sample from https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/notifications/push-notifications-hybrid-applications/event-source-based-notifications
When I receive a push notification and I tap on the app icon instead of tapping the notification in the notification bar, the notification isn't pushed and still appearing on the notification bar. Only if I tap on the notification bar, even if the app is open, the notification is pushed and is deleted from the notification bar.
There are no problems if the app is open when I receive the notification.
How I can force the notification to be pushed when I tap on the app icon rather than tapping the notification in the notification bar?
MobileFirst 7.0.0
Android Environment
I have indeed reproduced this. It appears to be a regression.
After a push is received and you then tap either the incoming notification in the notifications bar or the app icon
the app is supposed to launch
you are then prompted to login
push support etc is checked for, and finally
if there's a notification in the queue then it is supposed to be displayed (the pushNotificationReceived function is supposed to be called). This is not happening when tapping on the app icon
If you are an IBM customer or business partner I suggest for you to open a PMR (support ticket). This is going to be investigated by the development team...

Resources