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.
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.