navigator.share not working properly on Windows 10 Chrome + Edge browsers
P粉459440991
P粉459440991 2024-03-28 16:45:10
0
1
473

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粉459440991
P粉459440991

reply all(1)
P粉545682500

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template