PhoneGap 支持应用内购买吗?
有人使用 David Orchard 的 fork 通过 PhoneGap 进行应用内购买吗?已经有一年多没有更新了。根据这个线程城市飞艇不能还帮忙。
Has anyone used David Orchard's fork for in-app purchases with PhoneGap? It hasn't been updated in over a year. According to this thread Urban Airship can't help yet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
啊!我只是需要再仔细看看,这个 PhoneGap 插件应该可以完美工作。我将在这里评论它与城市飞艇的配合情况。
https://github.com/phonegap/phonegap-plugins/tree/主/iOS/InAppPurchaseManager
Ah! I just needed to look a bit harder, this PhoneGap plugin should work perfectly. I'll comment here how well it works with Urban Airship.
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/InAppPurchaseManager
daniellmb 建议的 phonegap 插件效果很好。请记住
CORDOVA_FRAMEWORK,删除与其相关的所有代码。您将遇到在 inAppPurchaseManager.h 中找不到的“CDVPlugin.h”文件,这就是导入的样子
如果您收到错误插件“InAppPurchaseManager”未找到,或者不是 CDVPlugin。检查 Cordova.plist 中的插件映射。您必须将以下内容添加到 Cordova.plist
The phonegap plugin suggested by daniellmb works well. Please keep the following in mind
CORDOVA_FRAMEWORK in InAppPurchaseManager.h, remove all the code around that. You will run into 'CDVPlugin.h' file not found in inAppPurchaseManager.h, this is how both import should look
If you get the errror Plugin 'InAppPurchaseManager' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist. You have to add the following to Cordova.plist