Some apps have notifications which can´t be dismissed by swiping them away.
How can I manage such behaviour?
Toast Notification This type of notification will be used when there is no need of user interaction on seeing this message.
FLAG_NO_CLEAR or Notification. FLAG_ONGOING_EVENT is what you are looking for.
A permanent notification is a (usually silent) alert displayed by certain apps on your Android smartphone or tablet at all times to let you know they're running in the background.
In addition to Andro Selvas answer:
If you are using the NotificationCompat.Builder, just use
builder.setOngoing(true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With