I create a website for the iPhone and I use my own application (cliqcliq Quickpick) to upload photos. I use a script as follows to check if the application is installed. The main idea is to send the user to the user URL, if the application is running there, if it is not there, the URL should be ignored, and the user sent to the App Store. The following is a list of script:
window.launchQuickpic = function() {
var start = new Date();
setTimeout(function() {
if (new Date() - start > 2000) {
return;
}
window.location = 'http://www.cliqcliq.com/quickpic/install/';
}, 1000);
var getParams = [...];
window.location = 'vquickpic://?' + getParams.join('&');
};
If the native application is not installed, I get a warning box that Safari does not recognize the custom URL. After the user clicks "ok", he works as expected. But anxiety is annoying.
window.location = code try/catch. .