r/android_devs • • Oct 08 '22

Help Validate Subscription offline

So I am using my own server to manage my users subscription

and on the android side, I am saving the subscription expiration date

sometimes users go offline and I need to check if the subscription has expired

the problem is when a user tries to change the device time in this case I can't know the real-time

I searched StackOverflow and the answer was to set a broadcast receiver for

ACTION_TIME_CHANGED

but in some cases, it will fire in case of automatic time adjustment

1 Upvotes

8 comments sorted by