美文网首页
google应用内购(in app billing),点击购买无

google应用内购(in app billing),点击购买无

作者: 二全 | 来源:发表于2019-10-08 16:31 被阅读0次

在部分手机上,例如小米
集成google的in app billing时,点击购买(或者说调起launchBillingFlow方法)无响应,会打印如下日志:
BillingHelper: Got null intent!
BillingClient: Unexpected null bundle received!

2019-10-08 16:27:59.237 19767-19767/com.isaidamier.kotlin.trivialdrive D/MakePurchaseFragment: starting purchase flow for SkuDetail:
     AugmentedSkuDetails(canPurchase=true, sku=gold_monthly, type=subs, price=IDR 14,000.00, title=Gold Status Monthly Subscription (Trivial Drive Kotlin Real), description=Bathe in the golden sunset, originalJson={"skuDetailsToken":"AEuhp4Kv45RXLI-vdHdT3TYRZrEK4BHUdnRC0gJHRGtxXBBvhShKATTR6bkeSk_8SaVI","productId":"gold_monthly","type":"subs","price":"IDR 14,000.00","price_amount_micros":14000000000,"price_currency_code":"IDR","subscriptionPeriod":"P1M","title":"Gold Status Monthly Subscription (Trivial Drive Kotlin Real)","description":"Bathe in the golden sunset"})
2019-10-08 16:27:59.257 19767-19820/com.isaidamier.kotlin.trivialdrive D/ViewContentFactory: initViewContentFetcherClass
2019-10-08 16:27:59.257 19767-19820/com.isaidamier.kotlin.trivialdrive I/ContentCatcher: ViewContentFetcher : ViewContentFetcher
2019-10-08 16:27:59.258 19767-19820/com.isaidamier.kotlin.trivialdrive D/ViewContentFactory: createInterceptor took 1ms
2019-10-08 16:27:59.281 19767-19767/com.isaidamier.kotlin.trivialdrive W/BillingHelper: Got null intent!
2019-10-08 16:27:59.282 19767-19767/com.isaidamier.kotlin.trivialdrive W/ProxyBillingActivity: Activity finished with resultCode 0 and billing's responseCode: 6
2019-10-08 16:27:59.307 19767-19767/com.isaidamier.kotlin.trivialdrive W/BillingClient: Unexpected null bundle received!

这是因为GooglePlay商店的 【后台弹出界面】的权限关闭了,打开即可


image.png

相关文章

网友评论

      本文标题:google应用内购(in app billing),点击购买无

      本文链接:https://www.haomeiwen.com/subject/eonbpctx.html