简体   繁体   English

我需要照顾非托管应用内购买产品吗?

[英]Do I need to take care of unmanaged In-app purchase product?

As far as I know for managed IAP, if the user has uninstalled the app or changed his device. 据我所知,对于托管IAP,用户是否已卸载应用程序或更改了设备。 He does not need to purchase his IAP again as when he try to purchase again the store will tell him he has purchased already (Both App Store and Google Play Store works like this right?) 他不需要再次购买IAP,因为当他尝试再次购买时,商店会告诉他他已经购买了(App Store和Google Play Store都这样吗?)

However for unmanaged IAP, in game currency for example. 但是对于非托管的IAP,例如游戏币。 if the user bought, let's say, 100 game coins. 如果用户购买了100个游戏币。 And if he uninstalled the app or changed his device, he lost his IAP, am I right? 而且,如果他卸载了该应用程序或更改了他的设备,他会丢失IAP,对吗? I am going to deliver my app so now I have to decided which way I need to handle my IAP. 我将交付我的应用程序,因此现在我必须确定处理IAP所需的方式。 I am afraid some users will drive crazy when they lost their in-game currency and rate my app 1 star. 恐怕有些用户在失去游戏内货币并将我的应用评为1星时会发疯。

If your IAP is a "non-consumable" then the user has to be able to recover the IAP. 如果您的IAP是“非消耗性的”,则用户必须能够恢复IAP。 That can be done by creating a 'restoreCompletedTransactions' function. 这可以通过创建“ restoreCompletedTransactions”函数来完成。

If the IAP is a 'consumable' then you do not need to restore this purchase to the user nor do you need to allow the user to get access to this IAP from other devices owned by the same user. 如果IAP是“消耗品”,则您无需将此次购买恢复给用户,也不需要允许用户从同一用户拥有的其他设备上访问此IAP。 However, if you want to do that, it can easily be done through the user's iCloud account. 但是,如果您想这样做,可以通过用户的iCloud帐户轻松完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM