【问题标题】:After completion of inapp purchase billingclient.querypurchase().getPurchaseList() is returning null应用内购买 billingclient.querypurchase().getPurchaseList() 完成后返回 null
【发布时间】:2019-06-13 21:58:49
【问题描述】:

我正在使用内部测试人员为我的应用程序进行应用程序购买测试,我能够购买产品并确认购买,但是当我使用 queryPurchases() 时。 getPurchasesList() 它返回 null。请帮助

【问题讨论】:

    标签: android google-play in-app-purchase in-app-billing


    【解决方案1】:

    billingclient.querypurchase().getPurchaseList() 这仅在 responseCode 为 ITEM_ALREADY_OWNED 时适用于版本 2.x。你应该检查他们的样本。

    https://github.com/googlesamples/android-play-billing/blob/master/TrivialDriveKotlin/app/src/main/java/com/kotlin/trivialdrive/billingrepo/BillingRepository.kt#L135

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多