Detect app url download location after iOS app install - ios

I have a requirement where i publish the iTunes app link to download the app in the website.
say i have 3 websites A, B, C
After the app is downloaded from the link, based on the website from where it has redirected i need to show custom message or image .
Say if the user click on download app on website A, then after the app is opened it should show "you have downloaded from website A"

No you can't, simply because the user downloads the app from the App Store and not from the website.

I do not have much experience with website development but I think you can set something on website where if you click on AppStore link it triggers an event to database and stores website name and whenever App is opened for the first time you call a web-service that interacts with your database and tells you the website name. But I do not think Apple will be happy seeing something like that in an App.

Related

can an iOS app read data written by my website?

I would like to redirect from my website to the AppStore to let users download my app. Afterwards, as soon as the user downloads and opens the app I need to identify it. So my question is if my website and app can read/write to the same storage/keychain/whatever. Is there a way to do that?

Putting information into a newly installed app

I have to create an iOS app, which needs to know a referral code right after the installation. The code comes from an email or from a link in the browser. The goal is to make the app have the referral code no matter it is already installed on the user's device or it is being installed by the clicking of the link.
What I know already:
I have to register an URL scheme with my app, for example myapp://
I have to handle opening by this URL, recognizing the referrer code from it (myapp://refcode=123)
I have to have a web service, which detects (with JavaScript) if the user's device can handle my URL scheme or not (like this: https://stackoverflow.com/a/6599773/511878)
If the app is not installed, I can send the user to the App Store to download it, otherwise I can open the app by this URL and transfer the information into it
What I miss: How can I immediately call this URL after installation?
I was sure this is impossible to do until this morning, when I've found that Apple's TestFlight is doing exactly the same. I've got an email containing an invite to some app, clicked on the link, and because I did not have TestFlight installed on that device so far, it brought me to the App Store, where I clicked install. The device installed TestFlight app. After this I've clicked the Open button in the Store, which immediately showed the invite for me.
I think the solution can't be that it recognized me, and picket up the invite from the server based on my user account, because I might have multiple invites, so it had to know which exact one to show.
EDIT: Video of this happening: http://gk.lka.hu/x/tf.mov
So the question is: How can I transfer information into an app which is being installed after a link is clicked without reclicking the link?
I'm a developer at Branch and we recently built this system for others to use. If you want to build a similar system from scratch, here is an example of what you'll have to do:
The web service you described above must capture some information from the user, such as IP address, OS, OS version, screen size, etc., before redirecting to the App Store. It should associate this with the link that was clicked, or at least the refcode from the link (http://yoursite.com/redirect?refcode=123).
After your app is downloaded, the first time it opens, send up the same info (IP Address, OS, etc.) up to your server. If your server sees these params and that they're the same as what you grabbed in step 1, it should pass back refcode=123 to your app.
Your app should then handle the 123 refcode however you see fit (e.g. open to the appropriate view controller, apply the referral code, etc.).
Hopefully that helps. It's definitely harder than it sounds to build from scratch..

iOS app pass specific id when app install from link

Project Detail :-
I am developing simple application in iOS,When app start there is one specific id or you can say password for specific user for login.
E.G.
I am installing app from link and link contain 12345 password,so when app installed from link and open app first time that password use as login. when other link contain abcde as password and install from link and open app first time that abcde password used without entering that from user.
Is there any way to pass specific id in url when app install first time from link.
As Per Apple Documentation about Promoting Apps with Smart App Banners
Is there any possibility to pass custom/specific parameter when user install from Smart App Banner and get that custom/specific parameter when app launch first time?.
I have read in forum and didn't get full information that it is possible or not?.
Not both install and open with information at the same time.
You have on link to go to the app store to get the app. You have another completely separate link to open the app once it is installed and pass it some information. From a user point of view these are 2 distinct tasks.
In the page you link to, app-id=myAppStoreID supports getting the app from the store and app-argument=myURL supports opening the existing app with supplied information. But, the user would click the banner once to go to the store and get the app, then return to Safari and click the banner again to open the app.

iOS how can open app from url or redirect to app store to download the app

I'm tryin to implement sending email or message with url to be open in the app but in case the user doesn't have the app install the url should redirect to download the app in the app store. For example:
1.- user1 sends email to his family with the url to load information in the app
2.- the family doesn't have the app install on there iOS devices and when they click on the url loads the itunes store to download the app. When they download the app the click the url again and the information is load it.
any of you knows how can implement something like this?
I'll really appreciate your help
The email should contain a link to a webpage for the content if possible. Then, that webpage should be designed so content can be opened in the app (see this question).
Since it is difficult to detect if the app is installed from a webpage, the webpage can have a link to install the app if it is not installed.
You are going to have to launch the app using the already suggested method:
window.location = "myapp://myparam";
Then you are going to need to check if that page launches or not (whether your app starts up or not). If it does not then you can launch a search in the app store by this means:
window.location = "itms-apps://ax.search.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?media=software&term=(your company/app name)"
Instead of doing this search you could also just provide the link directly in the app store to your app. I see the hardest part being checking whether or not your app launches from the original attempt to launch your app through window.href, I don't know how to accomplish that check.

How to make the app install another app inside them and execute the new installed app in IOS

I need to use the in app purchase server model, where I want the user to buy the the new interactive storybooks for kids and play the book.
I have searched through the net, but was off the luck.
just like -- http://itunes.apple.com/in/app/playtales-kids-interactive/id389523239?mt=8
How to get this work. please help
Thanks a ton.
You can't "install another app" programmatically. What you can do is to open the URL of your second app in iTunes from your application with UIApplication openURL. When you invoke this method with a link in iTunes, the App Store application will automatically open with the information page of your second application. Here the user can purchase it with a simple click.
On the other hand, the link you posted above does not use this approach but downloads/enables some new feature (a new e-book) in the application that was hidden before. I.e. all books were already in the application at the time of download, only they were hidden, or it downloads them from a server via a custom protocol defined by the application.

Resources