-
-
Notifications
You must be signed in to change notification settings - Fork 801
Open
Labels
Description
Steps to reproduce
- On any other website, or application, click on an
xmpp:uri. e.g.,xmpp:[email protected]?join(github won't convert this into a link)
What I expect
A popup like the following appears, and conversejs is available in the list:

Movim also displays the url of the instance, that I have greyed out here. But I assume it's just the browser adding some context to the entry, saying which website has registered the handler.
What happens
Converse doesn't appear in the list.
Misc
Implementation wise, the API to use seems to be navigator.registerProtocolHandler
This is what it looks like in Firefox:

A few things to consider before implementing:
- Not all conversejs instance will want to use this. I hardly see a need for a customer support platform for example, they will certainly want it off. The feature should probably be behind a configuration flag?
- Every conversejs instance I navigate to will start asking me to register the protocol handler. Is that something we want?
- Remembering that the user didn't add the handler might also be useful to avoid spamming them, (that happens too often in web applications).
- In the future, if this is implemented, removing the
registerProtocolHandlercall doesn't mean the handler is gone. I don't think there is a way to remove it even, from the application itself. That seems to be a user action, in the browser settings.
cmrd-senya, linkmauve and poVoq