将付费应用更改为免费,但要知道用户之前是否已购买 [英] Change paid app to free but know if user previously purchased it

查看:86
本文介绍了将付费应用更改为免费,但要知道用户之前是否已购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑将我的付费 iOS 应用更改为免费,使其基于广告,并且拥有应用内购买删除广告的选项。

I am considering changing my paid iOS app to be free, making it ad based, and having an in-app purchase option to remove the ads.

如果我刚推出应用,这听起来不错,但我们有超过3万的付费下载,我不希望这些用户在更新到免费的新版本时看到广告。

This sounds like a good idea if I was just launching the app, but we have over 30k paid downloads, and I don't want those users to ever see the ads when they update to the new version which is free.

我在这里有任何选择吗?

推荐答案

从iOS 7开始,可以使用正确的收据验证来完成。在iOS 7下,您可以获取已购买应用的收据。收据中的部分数据包括有关用户的原始购买应用版本的信息。您可以查看该版本,如果它是从更新发布之前到使用IAP免费,您可以选择为用户提供完整功能,而无需用户再次购买升级。

As of iOS 7, this can be done using proper receipt validation. Under iOS 7 you can obtain a receipt for the purchased app. Part of the data in the receipt includes information about the original purchase version of the app by the user. You can look at that version and if it is from before the release of your update to free with IAP, you can choose to give the user the full functionality without the user needing to purchase the upgrade again.

当然,如果您希望更新的应用程序在iOS 6下运行,则不能选择此选项。

Of course if you wish your updated app to work under iOS 6, this is not an option.

请参阅收据验证编程指南,了解收据验证的详细信息。

See the Receipt Validation Programming Guide for details on receipt validation.

这篇关于将付费应用更改为免费,但要知道用户之前是否已购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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