vanthomiy / Sleepest

MIT License
3 stars 0 forks source link

Add OnUpgradeReceiver #178

Open FabiM96 opened 2 years ago

FabiM96 commented 2 years ago

After an update from the store the app doesn't start the alarms of alarmManager automatically. We must add a broadcastreceiver for that case. An example is available on stackoverflow:

https://stackoverflow.com/questions/2133986/how-to-know-my-android-application-has-been-upgraded-in-order-to-reset-an-alarm

The sequence after a call is the same as in bootreceiver.

FabiM96 commented 2 years ago

Also necessary in case of delete all data!

vanthomiy commented 2 years ago

with the "delete all data" in the app or from the system?

FabiM96 commented 2 years ago

In the App. Maybe it is already implemented, but we should check this.