IAP 使用flutter_inapp_purchase 刷新商品列表报错?
IAP初始化商品报错
FlutterInappPurchase.instance.getProducts(_productLists);
[BackgroundTask] Background Task 13 ("SKProductsRequest"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
1、重启试过了,没用2、换其他手机没复现,功能正常3、出问题的手机,每次调用API都这样4、猜想是后台任务没结束,过了几个小时吧,还这样5、iPhone网络设置还原过,没用
请大佬们指点思路,没太想明白。。。
回复
1个回答

test
2024-07-04
xcode清理下,mac重启下,挂上VPN切到和沙盒账号同地区,搞定
回复

适合作为回答的
- 经过验证的有效解决办法
- 自己的经验指引,对解决问题有帮助
- 遵循 Markdown 语法排版,代码语义正确
不该作为回答的
- 询问内容细节或回复楼层
- 与题目无关的内容
- “赞”“顶”“同问”“看手册”“解决了没”等毫无意义的内容