1

I implemented showing number of unread messages as badge on my android application launcher from the link add notification badge but the problem is when I uninstalled my application and installed it again I am still able to see the number of unread messages. I know that I have to set the badge count to zero before removing. My question is how do we know user is clearing cache/uninstalling the application? Is there any method when user clicks on uninstall? Please help.

Community
  • 1
  • 1
Jeeri
  • 484
  • 2
  • 7
  • 18

1 Answers1

0

You can't execute some set of code before uninstalling the app. OS did not give that permission to us. But As per your problem, You can set badge count(unread messages count) as soon as re-installing/installing as 0 if possible.

Supriya
  • 1,078
  • 1
  • 8
  • 16