Question

i have included in-App purchase in my app where a user can purchase 4 items..items in the sense validity period..Suppose a user buy one 3 months validity item, it has be showed to him like "3 months validity left', whenever he log in to the app..So what i am saying is how can i store these values with regards to each user ? Any help will be greatly appreciated...

Was it helpful?

Solution

When a user successfully purchases one of your items (subscriptions?) then you can store the date that the item will expire in the device internal storage or on a web server that serves your application. Whenever the user opens the app/goes to a certain activity, subtract the current time from the stored expiration date, and you'll have a value for their remaining time.

Android Storage

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top