I recently made an online radio app. I implemented a status bar notification as music player notification. I clear the notification with onDestroy()
but the problem is that sometimes onDestroy()
is not being called.
How to clear the status bar notification from the status bar programmatically?
I made the code to clear the notification so please don't post that code. I want to know how to clear status bar notification when onDestroy()
is not being called. I tried all related StackOverflow links of this problem. Any help will be appreciated.