报错内容:
PlatformException(storekit_duplicate_product_object, There is a pending transaction for the same product identifier. Please either wait for it to be finished or finish it manually using completePurchase
to avoid edge cases., {applicationUsername: 1325712443552333826, requestData: null, quantity: 1, productIdentifier: yitianhuiyuanqntest, simulatesAskToBuyInSandbox: null}, null)
报错原因:
上一个购买 还没收到回调,就直接结束了界面,关闭了监听.
这个问题困扰了好久,最后才找到解决方案:初始化的时候结束掉上个购买.
解决方案:
//初始化appStore信息,询商品列表
Future<bool> initStoreInfo(List<String> _kProductIds) async {
L.v(