简体   繁体   中英

In-App Billing V3 - Purchase an Object that expires after 3 months - Android

I must implement in an Android App the purchase of an item that expires after 3 months.

I read on the developer guide that I should use "unmanaged" products, but I also read that in V3 Version of the API this object is handle as a managed product.

The question is the following, after the users buy an unmanaged object how can I manage the expiration? For example when the period will expire, the user can purchase another time the same product if he want?

Are you using an online database for your app?

If true, I think that the best way to do it is generating the end date when item is purchased and saving it in an online database. Then you have to check if end date is not past regularly in your app (for example every time that user start app,...).

This works for me, but in my case app connects regularly to a online database to work.

Other methods, like save end date in local storage can be easy hacked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM