应用内购买:“恢复购买"用户绑定的购买按钮 [英] In-App Purchase: "Restore Purchases" button on user-bound purchase

查看:81
本文介绍了应用内购买:“恢复购买"用户绑定的购买按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在我的Swift应用程序中实现应用内购买.该产品是非消耗性产品,可为用户激活一种高级版本.通常,对于非消耗性购买,您必须在应用程序中放置一个还原购买"按钮(强制性).但是,我的问题是:应用程序(因此是购买)是用户绑定的.因此,该应用程序的每个用户都必须向我们注册一个帐户.一旦用户购买了IAP,该用户帐户就会在我们的服务器内部被标记为高级".例如,当他注销并登录到另一个帐户后,购买将被停用",因为在登录过程中,无论用户是否是Premium,应用程序都会从​​服务器获取信息.

I'm currently implementing In-App Purchases in my Swift app. The product is a non-consumable one which activates a kind of Premium version for the user. Usually, with non-consumable purchases, you have to put a "Restore Purchases" button in your app (mandatory). However, my problem with this is: The app, and therefore the purchase, is user-bound. So every user of the app has to register an account with us. As soon as an user purchases the IAP, the user account gets flagged as Premium internally on our server. Once he logs out and logs into another account for example, the purchase gets "deactivated" as during the login process the app gets info from the server whether the user is Premium or not.

因此,基本上,如果我在我的应用中放置了恢复购买"按钮,那么一旦用户登录后无论如何激活购买,该按钮将变得毫无用处,或者该按钮将使某人成为可能只需购买一次高级版本,然后再在无数其他帐户中激活它,只需登录并恢复购买"即可.

So basically, if I'd put a "Restore Purchase" button in my app it would either be kind of useless as the purchase gets activated anyways as soon as the user logs in, or the button would make it possible for someone to purchase the Premium version once and then activate it on an unlimited number of other accounts, too, simply by logging into them and "restoring purchases".

因此,问题是:就我而言,此按钮是强制性的吗?我见过其他应用程序,尤其是基于订阅的应用程序也可以做到这一点.

So, question is: Is this button mandatory in my case? I've seen other apps, especially subscription-based ones do this, too.

推荐答案

如果您未在应用内购买实施中实施还原按钮,Apple将拒绝您的应用.

If you don't implement restore button for your in-app purchase implementation, Apple will reject your app.

他们的想法是,如果任何iTunes用户已经为某些内容付费,那么他应该能够在任何设备上访问该内容.您如何使用收据并允许由您决定的用户.

Their idea is if any iTunes user has paid for some content, he should be able to access the content on any device. How you are using the receipt and allowing the user that's up to you.

这篇关于应用内购买:“恢复购买"用户绑定的购买按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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