search

Home  >  Q&A  >  body text

navigator.share not working properly on Windows 10 Chrome + Edge browsers

I'm using the Network Sharing API, which according to the caniuse website should be supported on Windows OS (browsers Chrome and Edge). But when I try to use navigator.share({ title: 'Title' }); I get an empty window with a message.

For example, if I use Mac OS Safari, it works fine and shows all ways to share content.

My question is why on Windows I see empty windows and how to fix it.

P粉459440991P粉459440991274 days ago477

reply all(1)I'll reply

  • P粉545682500

    P粉5456825002024-03-29 00:57:02

    The problem is that Windows requires the url parameters to be sent along with the header. If you change it to navigator.share({ title: 'Title', url: 'url' }); it will start working on Windows and MacOS.

    reply
    0
  • Cancelreply