Using a non-consumable in-App purchase with ID's

放肆的年华 提交于 2019-12-12 02:32:58

问题


I'm using in-App purchases in my App on behave of getting some sounds from the App to the iPhone as a ringtone.

I've used 'Consumable' as the type for in-App purchase so that the user would be able to buy a ringtone and download it directly.

However this App got rejected by Apple because they want this function to be non-Consumable (so you would be able to retrieve this ringtone more than once). I only don't know how to set this up in my App because there are more than 200 possible ringtones. The actual buying is not the difficult part but as a criteria for in-App purchases you need to be able to restore previous transactions. As I'm only using one product identifier I think I would not be able to identify which ringtone has been purchases when restoring.

So my final questions: 1. How can I identify which item is bought (i.e. by using tags in the purchase)? 2. Am I able to use only 1 product identifier for this In-App purchase. Or do I need to make a productIdentifier for each and every ringtone?


回答1:


You have to create a non-Consumable product for each ringtone, each one with a different identifier, if Apple is refusing your app I think you have no other choice.



来源:https://stackoverflow.com/questions/13049567/using-a-non-consumable-in-app-purchase-with-ids

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!