vudangkhoa2906
vudangkhoa2906

Reputation: 193

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?

Upvotes: 2

Views: 1280

Answers (2)

vudangkhoa2906
vudangkhoa2906

Reputation: 193

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.

Upvotes: 10

from56
from56

Reputation: 4137

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.

Upvotes: 0

Related Questions