Change paid app to free but know if user previously purchased it(将付费应用更改为免费,但要知道用户之前是否购买过)
问题描述
我正在考虑将我的付费 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.
这篇关于将付费应用更改为免费,但要知道用户之前是否购买过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:将付费应用更改为免费,但要知道用户之前是否购买过
基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01