Currently, browsers allow to launch external applications by following urls for which the browser or the system know how to handle the scheme. mailto: is a classical example.
This mechanism is a simple way to launch external application (or an extension, etc). Most browsers require the user to confirm the execution of such action.
However, there is no standard way, and often, no way at all to detect beforehand that an handler is registered for a given protocol scheme. There is also no proper way to handler failure case
Therefore, I would like to discuss adding an api that would allow to query whether a particular protocol scheme has a known registered handler.
it could be added to the navigator object:
This metthod would complement the already existing
I don’t think there in a need to return all available protocols, so a method that test whether a single protocol is sufficient. There is also no need to know what application manage a given handler and whether this handler is a web application or a native application
This method could probably be used to query whether a given application is installed, but I don’t think that it would be a real concern as exposed application can probably detected anyway.
This method should not request a user permission, but the actual url opening still should.