具有自定义用户帐户管理的 iOS 非消耗性 IAP - 多次购买 [英] iOS Non-consumable IAP with custom user accounts management - multiple purchases

查看:26
本文介绍了具有自定义用户帐户管理的 iOS 非消耗性 IAP - 多次购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在用户购买内容后为其启用内容,并且该用户应该始终可以使用该内容.正确的方法是使用非消耗性 IAP.我有用户(登录、注册)并且我想将它与 IAP 连接(通过我的服务器).我可以使用 original_transaction_id,购买/恢复 IAP 并在具有相同帐户的其他设备上使用它是可以的.

I want to have content enabled for user after he purchase it and it should be available for that user all the time. Right way to do this is with Non-consumable IAPs. I have users (login, registration) and I want to connect it with IAPs (via my server). I can use original_transaction_id and it's okay for purchase/restore IAPs and have it on other devices with same account.

现在有什么问题.如果用户注销并且另一个用户登录但没有购买 IAP 那么他就不能在该设备上再次购买它(使用该 Apple 帐户登录设备)因为当应用程序尝试购买它时,它会恢复以前的购买和服务器支持它发现这个 original_transaction_id 已经为另一个帐户保存了.那你会怎么修呢?是否可以?还是我应该将其更改为消耗性 IAP?还是只是没人关心的问题?

Now what's the problem. If user logouts and another user logged in which doesn't buy IAP then he can't purchase it again on that device (with that Apple account logged in device) because when app tries to buy it, it restore previous purchase and with server support it finds out that this original_transaction_id is already saved for another account. So how would you fix it? Is it possible? Or should I change it to consumable IAP? Or it's just problem that no one carres?

谢谢

推荐答案

问题是您试图将 IAP 绑定到您自己的帐户系统.显然,iOS 并不关心您的用户退出"您的应用程序,就 iOS 而言,没有发生用户切换.他们仍然在该特定设备上使用其 Apple ID 登录.就 Apple 而言:1 个设备 = 1 个用户 = 1 个 Apple ID.

The problem is that you are trying to tie an IAP to your own account system. Obviously iOS doesn't care about your users "logging out" of your app, as far as iOS is concerned no user-switch has happened. They are still logged in with their Apple ID on that particular device. As far as Apple is concerned: 1 device = 1 user = 1 Apple ID.

如果 IAP 的性质不是可消耗的(如硬币),则使用可消耗的 IAP 来规避这个问题"是不可行的.IAP 的类型应该真正反映您为用户提供的价值类型.

Using consumable IAPs to circumvent this "problem" is not the way to go if the nature of the IAP is not consumable (like coins). The type of IAP should really reflect the kind of value you are offering to the user.

这是一个问题吗?您是否希望您的用户共享 1 台这样的设备,以便他们随时登录和退出您的应用程序?如果这是您真正想要解决的问题,请在检测到重复的交易 ID 时尽可能地通知用户.您可以提示他们先退出 App Store,并说明 IAP 与 Apple ID 相关联,而不是与您的服务帐户相关联.

Is this a problem though? Do you expect your users to share 1 device like that, where they would want to log in and out of your app on the fly? If it is something you'd really like to address, try to inform the user as best as possible whenever you detect a duplicate transaction ID. You could prompt them to log out of the App Store first and explain IAPs are tied to an Apple ID and not the account from your service.

这篇关于具有自定义用户帐户管理的 iOS 非消耗性 IAP - 多次购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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