使用带有ID的非消费类应用内购买 [英] Using a non-consumable in-App purchase with ID's

查看:114
本文介绍了使用带有ID的非消费类应用内购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用应用程序内购买,因为它可以将应用程序中的一些声音作为铃声发送到iPhone。

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.

然而,此应用程序被Apple拒绝,因为他们希望此功能不可消耗(因此您可以多次检索此铃声)。我只是不知道如何在我的应用程序中设置它,因为有超过200个可能的铃声。实际购买并不困难,但作为应用内购买的标准,您需要能够恢复以前的交易。因为我只使用一个产品标识符,所以我认为在恢复时我无法识别哪些铃声已被购买。

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.

所以我的最后一个问题:
1.如何识别购买的商品(即购买时使用标签)?
2.我是否只能使用1个产品标识符进行此应用内购买。或者我是否需要为每个铃声制作productIdentifier?

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?

推荐答案

您必须为每个铃声创建一个非耗材产品铃声,每个都有不同的标识符,如果Apple拒绝你的应用程序,我认为你别无选择。

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.

这篇关于使用带有ID的非消费类应用内购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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