Since May 2022, The new Play Billing Library version 5 allows your app to benefit from all the new subscription features.
While
purchases.subscriptions:gethas been upgraded topurchases.subscriptionsv2:get, the rest of the developer subscription management functions remain unchanged for now in thepurchases.subscriptionsendpoint, so you can continue usingpurchases.subscriptions:acknowledge
We notice there are three values of AcknowledgementState in purchases.subscriptionsv2:get
ACKNOWLEDGEMENT_STATE_UNSPECIFIED Unspecified acknowledgement state. ACKNOWLEDGEMENT_STATE_PENDING The subscription is not acknowledged yet. ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED The subscription is acknowledged.
How to acknowledge subscription for purchases.subscriptionsv2 with ACKNOWLEDGEMENT_STATE_UNSPECIFIED value? It seems we have no idea whether to acknowledge it or not.
Originally, there are two values of acknowledgementState for purchases.subscriptions:get
- Yet to be acknowledged 1. Acknowledged
Only When the value of acknowledgementState is 0, we do the acknowledge for this subscription.