I am creating an simple android application in that created a notification.
Now i want to remove the notification if the user doesn't response after the particular time
That means i want remove the notification after five mins
If i set notification. when = 0 I have time. builder. setWhen(0) removed the time.
You can directly add . setAutoCancel(true) this line into your code in order to remove notification on click.
any options you want to remove from the notification bar. Tap on any of the switches to turn them on or off. This removes these options from the notification bar.
The current correct solution may be to use:
NotificationCompat.Builder#setTimeoutAfter(long)
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