是否应再次确认购买续订?

Should a purchase be acknowledge again subscription renewal?

我正在对我的应用实施 google 应用内结算。通常情况下,当订阅到期时,它会自动续订。进行了一次新购买 (with the purchase token remain the same)

那么,我的应用程序应该确认这次新购买还是我可以安全地忽略它?

如果使用计费库,只需定期调用 billingClient.queryPurchases(),如果使用 AIDL

,则定期调用 mService.getPurchases()

如果用户已续订,则return用户拥有该项目,如果他决定不续订,则在宽限期(如有)后,将return他不拥有该物品。

在重新阅读 google play in app billing 文档后 (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."

所以基本上,如果续订,我不必承认。 我在这里为任何对同一主题感兴趣的人分享答案。