Android - Alarm lost after app update

Your solution is as simple as below:

Have a broadcast receiver registered within your app with 2 intent filters namely:

  1. "android.intent.action.BOOT_COMPLETED" - called when you device restarts. Alarms are cancelled when device is shut down.
  2. "android.intent.action.MY_PACKAGE_REPLACED" - called once your app is reinstalled or updated from play store or from any source.

You will also need the permission, "android.permission.RECEIVE_BOOT_COMPLETED". In this receiver you can start your alarms again.