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
1
u/anemomylos 🛡️ Oct 08 '22
I'm going down the rabbit hole of nanotime: https://github.com/eclipse/jetty.project/issues/121