本文介绍了使用In App Purchase将现有付费应用转换为免费版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在App Store上拥有付费应用的现有用户。我想将应用程序转换为具有可解锁功能的免费应用程序。有没有办法将现有用户推送到这个允许付费升级的新免费版本,以便现有用户被视为他们已经为此升级付费了?或者,正如我所料我们必须维护两个独立的代码库,因为应用开发正在向前推进 - 代替通过强迫他们再次购买来激怒我们的现有客户吗?

I have existing users of a paid for app on the App Store. I'd like to transition the app to a free app with unlock-able features. Is there a way to roll my existing users into this new free version that allows a paid "upgrade" so the existing users are treated as if they've already paid for this upgrade? OR, as I expect, must we maintain two separate code bases as app development moves forward - in lieu of angering our existing customers by forcing them to purchase again?

我知道,由于Apple今天才开始允许在免费应用程序中支持应用内购买,因此最初不会有很多权威性的答案...

推荐答案

有什么方法可以判断你的应用程序之前是否已经运行过? (比如你在退出时写的设置,创建的数据文件,第一次运行的日期戳?)

is there's some way you can tell if your app has been run before? (like settings you write on exit, data files created, date stamp of first run?)

如果是这样,你可以在升级中加入代码:

if so, you could put code in your upgrade like:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if (nil == [defaults objectForKey:@"app_v2_has_been_run"]) {
    if (nil == [defaults objectForKey:@"some_key_v1_makes"] {
         // they never had v1 of your app
    } else {
         // they had v1 of your app, so unlock some stuff for them
    }
    [defaults setObject:[NSDate date] forKey:@"app_v2_has_been_run"]; // or whatever
}

这篇关于使用In App Purchase将现有付费应用转换为免费版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:46