hacker
hacker

Reputation: 8947

Android in-App:how to store purchase details permanently?

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...

Upvotes: 0

Views: 224

Answers (1)

Sam Dozor
Sam Dozor

Reputation: 40734

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

Upvotes: 1

Related Questions