0

I have some app, which have subscription. User can buy subs, but how I can check is subs currently active (without server validation)?

1 Answers1

2

You can call queryPurchases() API if you're using the Google Play Billing Library. https://developer.android.com/reference/com/android/billingclient/api/BillingClient#querypurchases

If the subscription item is still active, it will be returned by this API. Once it gets non-active, Google Play will revoke it from client and thus it won't be returned by this API.

DrPower
  • 445
  • 3
  • 6