Live data from Hacker News

I've always wondered if anyone used sharing buttons on news sites and blogs

ankursethi.com

1–10 of 107 posts

Re: I've always wondered if anyone used sharing buttons on news sites and blogs

#5
I've added a button that just triggers `navigator.share()`[1]. I know most users do the copy-paste dance, but I find this is a good middle ground. Adding functionality for my users, but not adding special social media share buttons.

[1]: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...

Re: I've always wondered if anyone used sharing buttons on news sites and blogs

#8

I've added a button that just triggers `navigator.share()`[1]. I know most users do the copy-paste dance, but I find this is a good middle ground. Adding functionality for my users, but not adding special social media share buttons. [1]: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...

I thought about using navigator.share myself, but decided to go with the basic "Copy URL" button instead, as navigator.share is pretty useless on desktops and not supported across browsers on phones either (Android's Webview being the big one for my use case).

Re: I've always wondered if anyone used sharing buttons on news sites and blogs

#9
I use share buttons all the time on social platforms, and apps like Amazon that don't have any other way of deep linking.

Lot's of people use apps that don't expose a link, share buttons are great and even better when they use standards like your OS's share functionality.

Post reply on HN