custom-protocol-detection icon indicating copy to clipboard operation
custom-protocol-detection copied to clipboard

Protocol detection in Edge in Windows 10 doesn't work

Open KushnirDV opened this issue 8 years ago • 4 comments

Hi Probably need a special registration of the new protocol in the register of Windows?

KushnirDV avatar Feb 23 '17 13:02 KushnirDV

Yes doe not work with Edge

mafar avatar Apr 11 '17 05:04 mafar

Ok i figured it out. It works with edge. But Edge has problem loading local resources.

Changing <script src="protocolcheck.js"> to <script src="https://gitcdn.xyz/repo/ismailhabib/custom-protocol-detection/master/protocolcheck.js"> and rest similar works.

I would strongly suggest to make CDN for this repo and that example uses those cdn links to test it cross browser.

<!DOCTYPE html>
<html>

  <head lang="en">
    <meta charset="UTF-8">
    <title>Custom Protocol Detection</title>
  </head>

  <body>
    <h1>Click one of these labels:</h1>
    <div href="blahblah:randomstuff">Non-exist protocol
    </div>
    <div href="mailto:[email protected]">Send email
    </div>
    <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
    <script src="https://gitcdn.xyz/repo/ismailhabib/custom-protocol-detection/master/protocolcheck.js"></script>
    <script src="https://gitcdn.xyz/repo/ismailhabib/custom-protocol-detection/master/example.js"></script>
  </body>
</html>

mafar avatar Apr 11 '17 07:04 mafar

Hi, I'm using scripts as you describe, but edge continues not executing any protocol

Monkey-Island avatar May 30 '17 07:05 Monkey-Island

Hi, navigator.msLaunchUri detection approach is very buggy. You can't rely on it. (callbacks do not fire at all sometimes) bug FYI // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7181860/

I haven't found any reliable methods for detection for IE11/Edge at the moment.

catz avatar Jul 27 '17 14:07 catz