How can I check if a user purchased a subscription on Google Play Billing ? I tried to test on a test subscription "android.test.purchased" with this code :

            val purchasesResult = billingClient.queryPurchases(BillingClient.SkuType.INAPP)
            Log.d("showResult", purchasesResult.getPurchasesList().toString());

but i always get an empty list, how can i check if the user has purchased a subscription?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.