Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notification issues

I have developed application which shows Notification on receiving of new update from server.

On arriving of update from server, i can see generated new notification on Device notification area.

A problem which I am facing is that Notification time gets update each time on show.

  1. Is there any way to know about already exist Notification of app?
  2. I want to regenerate Notification if its not exist

I made R&D but didn't get any method to get existing Notifications which are in device notification area.

like image 579
Rohan Patel Avatar asked May 14 '26 10:05

Rohan Patel


1 Answers

To set up a notification so it can be updated, issue it with a notification ID by calling NotificationManager.notify(ID, notification).

To update this notification once you've issued it, update or create a NotificationCompat.Builder object, build a Notification object from it, and issue the Notification with the same ID you used previously.

like image 75
M D Avatar answered May 16 '26 00:05

M D



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!