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网络设置还原过,没用
请大佬们指点思路,没太想明白。。。
xcode清理下,mac重启下,挂上VPN切到和沙盒账号同地区,搞定