diff --git a/app/src/main/java/com/mindmachine/mvp/billing/BillingManager.kt b/app/src/main/java/com/mindmachine/mvp/billing/BillingManager.kt index b330147..da4303c 100644 --- a/app/src/main/java/com/mindmachine/mvp/billing/BillingManager.kt +++ b/app/src/main/java/com/mindmachine/mvp/billing/BillingManager.kt @@ -132,6 +132,13 @@ class BillingManager( return } + // Check if product details feature is supported + val featureResult = billingClient.isFeatureSupported(BillingClient.FeatureType.PRODUCT_DETAILS) + if (featureResult.responseCode != BillingClient.BillingResponseCode.OK) { + logError("PRODUCT_DETAILS feature not supported: ${featureResult.responseCode}") + return + } + val products = listOf( QueryProductDetailsParams.Product.newBuilder() .setProductId(BillingProducts.SUB_REMOVE_ADS_MONTHLY)