Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app - Lite version or paid version

Tags:

xcode

ios

In windows phone "App.xaml.cs" file contains the following method to identify whether the app is trial version in Windows Phone app.

private void Application_Launching(object sender, LaunchingEventArgs e)
{
  var license = new Microsoft.Phone.Marketplace.LicenseInformation();
   IsTrial = license.IsTrial(); }

Here IsTrail is the property which returns true or false. Is there any method is available for iOS to detect the lite or Paid version?

like image 272
Gobi M Avatar asked Dec 05 '25 04:12

Gobi M


1 Answers

There is no concept of trial in iOS App Store. You submit two different apps with different names - lite/pro etc. Since the apps are completely different binaries, you can simply use compile time preprocessor macros to differentiate between PRO and LITE versions.

Eg, in your PRO target, define LITE=0, and in LITE: LITE=1, and in code:

#if LITE
//do something
#else
//do something else
#endif

Just a word of warning: You might want to check Apple guidelines with respect to free/paid apps combo. As @manujmv mentioned, you don't want to use words like "Trial" or "Beta" in your app name. Any app submitted to the App Store should be functionally complete in itself and should be supported without asking user to pay additional $$$ (i.e. no time based expiry).

like image 170
maroux Avatar answered Dec 07 '25 20:12

maroux



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!