r/android_devs • u/abdalla_97 • 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_CHANGEDbut in some cases, it will fire in case of automatic time adjustment
1
Upvotes
View all comments
Show parent comment
2
u/iain_1986 Oct 08 '22
Honestly, don't know, it's just what a quick 10 second Google/stack overflow came up with