I am using the same notification id to show the notification of my app. I am passing an object with the intent to launch the activity. The issue is for same notification id, android caches the initial object which is passed along the intent.
So how can I make sure that the latest object is added in the intent.
Or how can I check if a notification with the id is not cleared in the notification panel and if it's there then I can delete the notification and create a new one.
Note :- I want to avoid the scenario to use new notification id as that keeps creating new notification without removing the older ones.