如何为iOS应用内购买创建促销代码

如何为iOS应用内购买创建促销代码

本文介绍了如何为iOS应用内购买创建促销代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截至今年5月左右,搜索谷歌搜索应用程序购买促销代码中的ios,产生了大量报道相同内容的新闻网站 - 苹果似乎正致力于允许推广代码以测试应用内购买来自。

As of about May 2014 this year, searching Google for "ios in app purchase promotion code", yields lots of news sites reporting the same thing - Apple seem to be working on allowing promotion codes for testing in-app purchases as evidenced by a screenshot from EA games.

我的问题是;有人知道怎么做吗?我登录到新的iTunesConnect界面但找不到任何链接,Apple文档中没有任何内容出现在我能找到的内容中。

My question is; does anybody know how to do this yet? I logged into the new iTunesConnect interface but can't find any link and nothing appears in the Apple docs from what I can find.

理想情况下我想创建一个每月订阅的代码,但它们可能只允许用于消耗品。由于缺乏关于IAP促销代码的实际信息,我的猜测是该功能尚未正式提供,并且Apple邀请EA游戏进行测试。

Ideally I'm looking to create a code for a monthly subscription but they may only be allowed for consumables. With the lack of actual info on IAP promo codes my guess is that the feature hasn't been officially made available yet and that EA games were invited by Apple to test it out.

推荐答案

正如@Christoph Wimberge所说,这是个老消息。 Apple现在支持此功能。

As @Christoph Wimberge notes this is old news. Apple is now supporting this.

您目前无法正式获取IAP的促销代码。请参阅。如果您正在测试,那么您应该在用户和角色下创建沙箱测试人员。根据您处理IAP的方式,这可以作为各种促销代码。因此,例如,如果您使用IAP在NSUserDefaults或plist文件中设置标志,那么这将作为促销代码。您必须指示用户以测试用户身份登录以进行购买。即使您在设置标志后删除测试用户,用户也可以使用IAP,只要他们不完全删除应用程序并假设您不更改IAP的处理方式,例如使用App Store数字收据确认购买。当然,如果您担心破解者,那么您可能不会将成功的IAP存储为标记,尤其是在用户默认值中,任何人都可以随时更改值。但对于不是游戏的应用程序,这可能不是一个巨大的担忧。希望有所帮助。

You cannot officially get promo codes for IAP currently. See here https://developer.apple.com/library/prerelease/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/ProvidingPromoCodes.html . If you're testing then you should be creating Sandbox Testers under Users and Roles. Depending on how you handled the IAP this could well serve as a promo code of sorts. So, for instance, if you're using the IAP to set a flag in NSUserDefaults or a plist file then this will work as a promo code. You will have to instruct the user to log in as the test user for the purposes of the purchase. Even if you delete the test user once the flag is set the user can use the IAP so long as they don't completely remove the app and assuming you don't change the way IAPs are handled like using App Store digital receipts to confirm purchases. Of course, if you're worried about crackers then you're probably not going to store successful IAP as a flag especially in User Defaults where anyone can just change the value willy nilly. But for apps that aren't games this probably isn't a huge worry. Hope that helps.

这篇关于如何为iOS应用内购买创建促销代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 12:51