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

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

问题描述

我正在考虑将我的付费 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天全站免登陆