Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add my application to app store with two different versions (free and paid)

Tags:

ios

itunes

I will publish my app as free, but some parts(functions) of App's will require money.

Ex: when user wants to send message from the app, my app will say

"You should buy full version of this app" ... etc.

How can i do that. I have no idea.

ANSWER

I have finally found what i was looking for. Here is a good article for who are searching the same thing with me. Thx.

How to Create Both a Paid and Lite Version of an iPhone App

like image 220
yatanadam Avatar asked Apr 10 '12 07:04

yatanadam


2 Answers

As @sergio pointed out, you will need two completely different apps.

However, they can - and hopefully will - have the exact same code, except for one single line: Something like #define FULL_VERSION and/or undef.
Then in your real code, you can check for the macro by using #ifdefs and #endifs and running/compiling code depending on whether the user bought the full version or the 'demo'.

Note that this approach does not affect the runtime speed of your app, while in-app-full-version-purchase would.

    BOOL triesToAccessCoolFeature;
    if (triesToAccessCoolFeature)
    {
#ifdef FULL_VERSION
       coolFeature();
#else
       alert("Buy the full version to access this feature.");
#endif
    }
like image 76
Christian Schnorr Avatar answered Sep 18 '22 13:09

Christian Schnorr


You need to create two different apps for the App Store: a free and a paid one. You can have, e.g.:

  1. MyApp Lite (free) + MyApp (paid)
  2. MyApp (free) + MyApp Pro (paid)

The two apps would share a lot of code, but only you will know that. As to the App Store, they would be two completely different and unrelated apps.

In your free app you can add your alert which optionally can include a link to the App Store page for your paid version.

like image 32
sergio Avatar answered Sep 19 '22 13:09

sergio