Coffeeboys / RenewPass

An Android app for renewing your UPass
MIT License
10 stars 2 forks source link

Auto-Renew won't be rescheduled on play store app update #30

Closed TrevRawr closed 7 years ago

TrevRawr commented 8 years ago

I haven't actually tested this, but I'm pretty sure that alarms that trigger auto-renewal for the app will be canceled when the user updates the app from the play store and will need to be rescheduled.

Note that this won't affect current users since the current version of the app on the play store is the first version with auto-renewal, but it SHOULD be fixed (and tested) BEFORE the next play store update.

It shouldn't be too hard to fix. Just listen for the intent action ACTION_MY_PACKAGE_REPLACED with an intent filter and register an alarm with the alarm manager at the last registered alarm time. Stack Overflow link.

landalex commented 7 years ago

Fixed in 8c32632c8fa56ab094bb24170c8a6c7646795849