Detecting the installed application URI in Webkit browsers

I have a question mainly related to the Iphone web browser, but I hope the same solution will work on other webkit-based browsers.

I have an application (Iphone + Android) that registers a handler for a custom URI (appuri: //) on the phone. I can launch the application by making a link to "appuri: // act / launch" from my web pages. This only works if my application is installed on the device. If the device does not have an installed application, a message appears: "Safari could not open ...".

What I want to do is determine if the URI scheme is supported in the browser, and then request my own message that “download the application..blah blah blah” if no handler for the URI scheme is found.

Is there a way to find or find a list of URL scheme handlers on the phone in a web browser?

+3
source share
1 answer

Protocol handlers are implemented under the browser, and providing external code for direct access to the internal systems of the operating system will be a rather terrible idea, therefore, not without a plug-in.

And since you cannot run plugins in Mobile Safari, the answer is likely to be no.

0
source

Source: https://habr.com/ru/post/1725736/


All Articles