Phonegap / Cordova inAppPurchaseManager无效的产品ID [英] Phonegap/Cordova inAppPurchaseManager invalid product ids

查看:70
本文介绍了Phonegap / Cordova inAppPurchaseManager无效的产品ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PhoneGap / Cordova插件进行In App Purchase:InAppPurchaseManager与Cordova 1.7,我似乎正在进入商店,但它没有找到产品。我已经使用正确的配置文件设置了应用程序,并且我已经根据我的知识正确地在iTunes Connect中添加了该应用程序的产品。我已经搜索了我正在回复的错误消息的高低,但是在互联网上没有太多关于它的信息。我把它缩小到最合理的解决方案是等待产品传播到所有服务器(虽然这看起来有点傻)。



已经以前有人遇到过这个问题,你的解决方案是什么?



这是我在控制台得到的错误




  • 获得iap产品响应

  • 测试应用2.0 [21619:707]发送失败( window.plugins.inAppPurchaseManager.callbackMap.f0.fail )js for com.lus.testapp.product.1

  • test app 2.0 [21619:707] done iap


解决方案

这只是一个时间问题,第二天再次运行,它没有问题。所有错误都消失了,我收到了正确的数据。



这是相当愚蠢但是需要花费很多时间才能通过所有服务器传播数据。



如果您正在进行应用程序内购买,请在创建应用程序时尽早设置它们,这样当您准备将产品集成到应用程序中时,数据将可供您使用。 p>

I'm using the Phonegap/Cordova plugin for In App Purchases: InAppPurchaseManager with Cordova 1.7 and I am getting through to the store it seems but it is not finding the product. I've set up the app with the correct provisioning profile and I've added products to that app in iTunes Connect correctly to the best of my knowledge. I've searched high and low for the error message I am getting back but there just isn't much info about it on the interwebs. The most plausible solution that I've narrowed it down to is to wait for the products to propagate to all of the servers (this seems a little silly though).

Has anyone had this problem before, and what was your solution?

Here's the error I'm getting in the console

  • got iap product response
  • test app 2.0[21619:707] sending fail (window.plugins.inAppPurchaseManager.callbackMap.f0.fail) js for com.lus.testapp.product.1
  • test app 2.0[21619:707] done iap

解决方案

It was only a matter of time, ran it again the following day and it worked without a problem. All errors went away and I received the correct data.

It's rather silly but it takes that much time to propagate the data through all the servers.

If you are doing In App Purchases set them as early as possible when you create your App so that when you are ready to integrate the products in your App the data will be available to you.

这篇关于Phonegap / Cordova inAppPurchaseManager无效的产品ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆