1. What is iOS app evocation
Application evocating in IOS is used to implement the following functions: In the browser, you can open the local app on the IOS mobile phone in certain ways. If the app is not installed, you can jump to the download page of the App Store corresponding to the app.
2. Connect to the App store download page
The download page connection of an application in the App store is as follows: /us/app/id399608199. Opening this connection in a PC browser will jump to the PC interface of the application details page. Open the connection in Safari, and the browser will ask whether to open the connection in the App Store. Selecting Open will automatically open the App Store and jump to the download interface of the corresponding app.
3. URL Schemes
URL Schemes is very similar to URLs. A URL can point to a certain website (such as to the official website of Apple) or to a specific page within the website (such as /mac/ to the Mac page of Apple’s official website). A URL Schemes can also point to an APP (weixin://points to WeChat APP) or a function within the APP (weixin://dl/moments/points to WeChat Moments function).
The basic URL Schemes refers to this part like weixin://. Through this basic URL Schemes, you can open an IOS APP application. For example, if you enter weixin:// in the address bar of Safari, the browser will prompt whether to open WeChat. If you choose to open it, the local WeChat application will be automatically opened by your mobile phone.
4. IOS application evocation method
1. Direct jump method (supports various versions of IOS systems)
The easiest way is to use the a tag in the page to make a button and let its href point to the basic URL Schemes that opens the app. Considering that there may not be any local installation, you need to use js code to let the browser jump to the corresponding App Store download page. You can set a reasonable time to reflect the time. If the timeout has not been opened, you will jump to the download page. You can use the setTimeout method, the code is as follows:
$('a').click(function() { = 'weixin://'; setTimeout(function() { = '/us/app/id399608199'; }, 500); }
2. Use iframe (only support IOS8 and below versions)
This function can be achieved by adding a hidden iframe to the body and setting the src inside it to the corresponding connection. The code is as follows:
var url = { open: 'weixin://', //The corresponding Scheme down: '/us/app/id399608199' //Responsive download address}; var iframe = ('iframe'); //Create an iframevar body = ; ='display:none;width=0;height=0'; //Set the iframe to be invisiblevar timer = null; var openapp = ('openapp'); ('click', function() { (iframe); //After clicking on the Open App button, add this iframe to the body = ; //Set the src of the iframe to weixin://, and jump through this iframe timer = setTimeout(function() { = ; //Skip to the download interface after 500ms }, 500); }, false)
3. Use Universal links (currently only supported by IOS9)
Universal links is a new feature added to IOS9, it is a normal HTTP connection. Through Universal links, you can easily start the APP through traditional HTTP links (if the app is already installed on the iOS device), or open the corresponding download interface (the app is not installed on the iOS device).
Thank you for reading, I hope it can help you. Thank you for your support for this site!