Today at work I have to handle this case regarding my jobs web App and iOS App. There is an invitation email to register in my application and I need to behave like this:
- Opening the link on an iPhone will result in:
- Open the iOS App in a certain view if the App is installed.
- Open the iTunes page of the App if the App is not installed.
- Open the web application if the device is any other than and iPhone.
To accomplish this, after a little research I found the solution as something like this.