Saturday, April 13, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  148] [ 1]  / answers: 1 / hits: 33822  / 15 Years ago, thu, july 16, 2009, 12:00:00

As you probably know, iPhone applications can register a custom URL scheme handler, ala myapp: and these can be used for links in a page viewed in Safari.

I'd like to automatically launch my application from a specific page if the visitor has the app installed. If the app's not installed, I'll just show them the current mobile-optimized view of the page.

How can I do this detection? Google searches have been fruitless. Also, to be tricky, I've tried doing something like this to no avail:

var image = new Image();
image.onerror = function(e){
image.onload = function(e){
image.src = 'myapp://something=meaningful';

Has anyone come across a way to do application detection?

More From » iphone


The solution I've presented on another Stack Overflow question is about as close as you're going to get.

[#99119] Saturday, July 11, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 284
Total Questions: 93
Total Answers: 115

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
milor questions