在我的应用程序之间共享通过应用内购买购买的非消耗产品?
我想开发几个 iPhone 应用程序,允许用户使用应用程序内购买功能购买非消耗品。
这些应用程序有可能共享相同的产品吗?
让我们举这个例子来更清楚一些。用户使用 IAP 从 app1 购买产品 1。 app2 在调用SKPaymentQueue 的restoreCompletedTransactions 时能否恢复product1?
或者用户应该购买两倍的产品; app1 一次,app2 一次?
谢谢!
I'd like to develop several iPhone applications that will allow an user to buy nonconsumable products using the In-App Purchase feature.
Is it possible that these applications share the same products?
Let's take this example to be clearer. User buys product1 from app1 using IAP. Could app2 restore product1 when calling restoreCompletedTransactions of the SKPaymentQueue?
Or should the user buys twice the products ; one time for app1 and one time for app2?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用自定义 URL 方案机制来调用您的“同级”应用程序并向它们传递代表购买的令牌。他们每个人都需要自己处理该购买(下载某些东西或解锁某些东西或您所做的任何事情),但他们都可以共享购买的事实,这实际上是所有应用内购买的内容。
You could use the custom URL scheme mechanism to call your "sibling" apps and pass them a token representing the purchase. They'll each need to deal with that purchase themselves (downloding something or unlocking something or whatever you do), but they can all share the FACT of the purchase, which is really all in-app purchasing is.