Detect Installed Application URI Handler on Webkit browsers

Posted by Punit Raizada on Stack Overflow See other posts from Stack Overflow or by Punit Raizada
Published on 2009-12-15T16:56:41Z Indexed on 2010/04/07 0:03 UTC
Read the original article Hit count: 582

Filed under:
|

Guys,

I have a question mainly related to the Iphone web browser but I am hoping the same solution would work on other browsers that are webkit based.

I have a application (Iphone + Android) that registers a handler for custom URI (appuri://) on the Phone. I am able to launch the application by making a link to "appuri://act/launch" from my web pages. This works only if my application is installed on the device. If the device does not have the app installed then a message comes up "Safari was not able to open ....".

What I want to do is detect if the URI Scheme is supported from the browser and then prompt my own message saying "please download the app ..blah blah blah" if the handler for the URI scheme is not found.

Is there a way I can detect or find the list of URL Scheme handlers on the Phone from the Web Browser ?

© Stack Overflow or respective owner

Related posts about webkit

Related posts about iphone-web