Can I dynamically convert content to an iPhone application according to the referrer in my application in iTune appstore

I have an application in which I need to display different content, depending on which site is linking to the user to download my application. For example, on site A there is a link allowing users to download my application, I would like to display some products from site A when the user launches my application after installation. Is this doable? Thanks.

+4
source share
1 answer

This is definitely doable, the easiest way I can think of is for the user to enter some sort of promo code corresponding to the site on which they downloaded your application. From there, you can compare what they entered into the array of valid promo code strings, and if it matches the bool job for this specific YES promo code, then set your user interface to something like

if(website1bool == YES){Display customized UI};

Then add this bool to NSUserDefaults to remember the changes. It may be many ifs, but it is definitely doable!

EDIT : in the default settings there will be more or less ...

 if([myDefaults boolForKey@ "website1Bool"] == YES){Configure}; 
0
source

Source: https://habr.com/ru/post/1410813/


All Articles