xcode 消耗品应用内购买和恢复按钮
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14173906/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Consumable In-App Purchase and Restore Button
提问by tomDev
The Restore IAP button is required to all apps now, and if they don't have Apple will reject the app.
现在所有应用程序都需要“恢复 IAP”按钮,如果它们没有,Apple 将拒绝该应用程序。
The questions is, what about consumable items? It seems logical that you can't restore them, since the user will spend the extra coins on the game and that's it.
问题是,消耗品呢?您无法恢复它们似乎合乎逻辑,因为用户将在游戏上花费额外的硬币,仅此而已。
I'm storing the coins using NSUserDefaults, so if the user deletes the app he will lose everything, unless he syncs through iTunes. iCloud backup to sync devices will be added in a future update, but I guess this has nothing to do with the question, that is...
我使用 NSUserDefaults 存储硬币,因此如果用户删除该应用程序,他将丢失所有内容,除非他通过 iTunes 同步。iCloud 备份同步设备将在未来的更新中添加,但我想这与问题无关,那就是......
Consumable IAP can/must be restored?
消耗品 IAP 可以/必须恢复吗?
I'm just afraid of getting a rejection and delay even more my new game.
我只是害怕被拒绝,甚至更耽误我的新游戏。
Thanks,
谢谢,
回答by s.bandara
Consumables are not to be restored, just as you were reasoning in your original question.
消耗品不会被恢复,就像你在你最初的问题中推理一样。
回答by Heath Borders
From Apple's In-App Purchase Programming Guide
来自 Apple 的应用内购买编程指南
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. StoreKit handles the syncing and restoring process for auto-renewable subscriptions and for non-consumable products.
消耗品,就其性质而言,不会同步或恢复。用户明白,例如,在他们的 iPhone 上多购买 10 个泡泡并不会让他们在 iPad 上多购买 10 个泡泡。所有其他类型的产品都可以在用户的所有设备上使用。它们也已恢复,因此用户即使在购买新设备后也可以继续访问他们购买的内容。StoreKit 处理自动更新订阅和非消耗性产品的同步和恢复过程。
回答by Abhijith
Consumable items are not to be restored. If you want to deliver content from server, make transaction as finished only after delivering content from server. The receipt will be only available until you mark the transaction as finished.
消耗品不可恢复。如果您想从服务器交付内容,只有在从服务器交付内容后才能完成交易。收据只有在您将交易标记为完成后才可用。