我使用离子框架构建iOS应用程序。目前,我正在添加应用购买订阅。到目前为止我还是:
运行以下代码可正确列出我的产品:
$storekit
.setLogging(true)
.load(['com.insiderai.ios.basic1'])
.then(function (products) {
console.log('products loaded', JSON.stringify(products));
})
.catch(function () {
console.log('no products loaded');
});
当我从控制器执行$storekit.purchase("com.insiderai.ios.basic1");
时发生以下错误:
2014-11-11 17:45:27.139 insider_ios[219:6335] InAppPurchase[objc]: About to do IAP
2014-11-11 17:45:27.140 insider_ios[219:6335] InAppPurchase[objc]: Transaction updated: com.insiderai.ios.basic1
2014-11-11 17:45:27.140 insider_ios[219:6335] InAppPurchase[objc]: Purchasing...
2014-11-11 17:45:27.141 insider_ios[219:6335] InAppPurchase[objc]: State: PaymentTransactionStatePurchasing
2014-11-11 17:45:27.145 insider_ios[219:6335] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> Cannot finish a purchasing transaction
有什么想法怎么办?从哪里开始看?
答案 0 :(得分:0)