简体   繁体   中英

How to make back consumable in-app product into non-consumable?

My android app uses in-app product. It's necessary for me to achieve at the same time two task:

  1. user should have opportunity to buy the product several times . For that I can make product consumable using consumePurchase method.
  2. I need to have opportunity to check user already paid product . I can't save it in device because I need to know it even if user change device. I know it can make it only when product is non-consumable using getPurchases method because on consumable product it returns always nothing.

Help me please: how can I achieve this two task at the same time?

May be exist way to return back product from non-consumable into consumable?

store the purchase of the user against his session and device id. Check if the person has purchased the item in your server side

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