I have an app running on Android that creates an alarm that is fired every 24 hours. This alarm is working as expected.
However, when I update my app through Google Play this alarm is lost because the end user does not open the app right after the app was updated.
My opinion is that Android is deleting the alarms my app created when the app was updated.
Does anyone already got this situation? Is there any way to persist the alarms when the app is updated?
Your solution is as simple as below:
Have a broadcast receiver registered within your app with 2 intent filters namely:
You will also need the permission, "android.permission.RECEIVE_BOOT_COMPLETED". In this receiver you can start your alarms again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With