简体   繁体   中英

Should a purchase be acknowledge again subscription renewal?

I'm implementing google in-app billing on my app. Normally, when a subscription reaches expire time, it will be automatically renewed. A new purchase is made ( with the purchase token remain the same )

So, should my app acknowledge this new purchase or can I safely ignore it?

after rereading the google play in app billing documentation ( https://developer.android.com/google/play/billing/billing_library_releases_notes#2_0_acknowledge )

"For subscriptions, you must acknowledge any purchase that has a new purchase token. This means that all initial purchases, plan changes, and re-signups need to be acknowledged, but you do not need to acknowledge subsequent renewals. To determine if a purchase needs acknowledgment, you can check the acknowledgement field in the purchase."

so basically, if the subscription is renewed, i don't have to acknowledge it. i share the answer here for anyone interested in the same topic.

You simply periodically call billingClient.queryPurchases() if you use the billing libray, or mService.getPurchases() if using the AIDL

If the user has renewed the subscription, it will return that the user owns the item, if he decides not to renew it, after the grace period, if any, it will return that he does not own the item.

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