【问题标题】:Android Google billing integration - Client does not support ProductDetailsAndroid Google 计费集成 - 客户端不支持 ProductDetails
【发布时间】:2022-06-15 12:16:10
【问题描述】:

在尝试将 Google 计费集成从版本 4 迁移到 5 时,我在调用 queryProductDetailsAsync 时收到错误消息“客户端不支持 ProductDetails”。

List<QueryProductDetailsParams.Product> productList = List.of(QueryProductDetailsParams.Product.newBuilder()
            .setProductId("ppgapp1")
            .setProductType(BillingClient.ProductType.SUBS)
            .build());
QueryProductDetailsParams params = QueryProductDetailsParams.newBuilder()
                    .setProductList(productList)
                    .build();
billingClient.queryProductDetailsAsync(params, listener);

迁移时是否需要在控制台上进行任何更改?

对于提交到封闭式或内部测试轨道以进行 Google 结算集成的审核需要多长时间?

【问题讨论】:

    标签: android play-billing-library


    【解决方案1】:

    我也遇到过同样的问题。我找不到有关问题发生原因的任何信息。确认是否支持 ProductDetail 功能后即可使用。

    BillingResult billingResult = billingClient.isFeatureSupported( BillingClient.FeatureType.PRODUCT_DETAILS );
    if ( billingResult.getResponseCode() == BillingClient.BillingResponseCode.OK ) {
        // use billingClient.queryProductDetailsAsync()
    }
    

    【讨论】:

      【解决方案2】:

      同样的问题,亲爱的 Aldrin Joe Mathew,您解决了吗?求救

      【讨论】:

        猜你喜欢
        • 2020-11-02
        • 1970-01-01
        • 2019-12-08
        • 1970-01-01
        • 2019-01-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多