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

在部分手机上,例如小米
集成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
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • //gradle 下载慢 //可以直接下载gradle之后放在对应的目录里//或者修改 根目录下的文件bul...
    zeromemcpy阅读 4,357评论 0 0
  • 本篇文章是官网中文版。有外网的小伙伴可以直接访问官网地址和代码示例 https://developer.andro...
    钢镚koala阅读 9,302评论 0 0
  • Intent组件虽然不是四大组件,但却是连接四大组件的桥梁,学习好这个知识,也非常的重要。 一、什么是Intent...
    困惑困惑困惑阅读 5,522评论 0 0
  • 1.什么是Activity?问的不太多,说点有深度的 四大组件之一,一般的,一个用户交互界面对应一个activit...
    JoonyLee阅读 11,045评论 2 51
  • 英雄之旅是一套讲述传统英雄故事套路的游戏理论,它讲述了主人公通过一套似乎可以归纳出来的套路进行完整个故事,从而达到...
    划致阅读 6,673评论 1 5

友情链接更多精彩内容