Question

Android Billing Library version 5

  • 16 August 2023
  • 1 reply
  • 166 views

Badge

Has anyone else experienced issues with the Android Billing Library version 5 when in-app purchases don't load? I receive the error "BillingClient: Querying product details is not supported." This started earlier this month for some of my clients. It's extremely frustrating, and I can't seem to find a solution.


1 reply

Userlevel 5
Badge +9

Hello,

This is dependent on the device it seems. It’s more common on older Android devices than newer ones. Make a call to canMakePayments to ensure the device can fetch product details before displaying products or making purchases: https://sdk.revenuecat.com/android/6.9.2/purchases/com.revenuecat.purchases/-purchases/-companion/can-make-payments.html?query=fun%20canMakePayments(context:%20Context,%20features:%20List%3CBillingFeature%3E%20=%20listOf(),%20callback:%20Callback%3CBoolean%3E)

I also found this StackOverflow post that sounds similar and they resolved it by updating Google Play: https://stackoverflow.com/questions/73071611/android-iab-v5-querying-product-details-is-not-supported this makes sense to me as Billing Client 5 would require an update to Google Play and possibly the device OS.

Reply