How to acknowledge subscription for purchases.subscriptionsv2 with ACKNOWLEDGEMENT_STATE_UNSPECIFIED

Viewed 95

Since May 2022, The new Play Billing Library version 5 allows your app to benefit from all the new subscription features.

While purchases.subscriptions:get has been upgraded to purchases.subscriptionsv2:get, the rest of the developer subscription management functions remain unchanged for now in the purchases.subscriptions endpoint, so you can continue using purchases.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

  1. Yet to be acknowledged 1. Acknowledged

Only When the value of acknowledgementState is 0, we do the acknowledge for this subscription.

0 Answers
Related