gpt4 book ai didi

ios - 应用内购买、消耗品

转载 作者:行者123 更新时间:2023-12-03 16:53:45 27 4
gpt4 key购买 nike

这是一个 Cocoa 应用内购买问题。

我有一款游戏,您可以购买一组 10 条生命,这是一种消耗品应用内购买 - 一旦生命用完,用户必须购买更多生命。

如果用户使用生命的子集(例如 5),然后删除应用程序、重新安装并恢复购买,会发生什么情况?苹果会告诉用户他们购买了一套 10 条生命,我的程序会很高兴地答应并给他们 5 条额外的生命。

我的服务器需要跟踪这些数据吗?我在应用内购买文档中没有找到任何有关如何进行此操作的信息。

最佳答案

如果用户使用生命的子集(例如 5 个),然后删除应用程序、重新安装并恢复购买,会发生什么?Apple 会告诉用户他们购买了一组 10 个生命,而我的程序会很高兴地答应并给他们 5 条额外的生命。

不!消耗品无法恢复。即使您提供恢复 IAP,消耗品也无法恢复。因此,您对用户将获得 5 条额外生命的担忧是毫无根据的,但是,如果您的应用程序正在与服务器同步数据,您需要跟踪用户使用的生命。

这是苹果文档所说的,

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Products.html#//apple_ref/doc/uid/TP40008267-CH2-SW2

Consumable products, by their nature, aren’t synced or restored. Users understand that, for example, buying ten more bubbles on their iPhone doesn’t also give them ten more bubbles on their iPad. All other types of products are made available across all of the user’s devices. They’re also restored so users can continue to access their purchased content even after buying a new device. Store Kit handles the syncing and restoring process for auto-renewable and free subscriptions and for non-consumable products.

Products that expire or get used up—consumable products, auto-renewable subscriptions, and non-renewing subscriptions—can be purchased multiple times to get the consumable item again or extend the subscription.

enter image description here

关于ios - 应用内购买、消耗品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42599682/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com