Search code examples
androidalarmmanagernotificationmanager

android AlarmManager behavior when application is forced to close


I use AlarmManager to issue local notifications to user. But if I kill my application using Settings->Apps->Stop, alarm manager seems to be destroyed and all the notification icons disappears from status bar.

It it normal? The idea of local notifications is to persuade user to start my great app if it's closed. And it seems odd for me that they are being wiped out if I kill the app.


Solution

  • If you KILL your application you also kill the AlarmManager. There is nothing odd about it. You close the app by pressing the home button, not by killing it via the settings.