gohugo-theme-ananke icon indicating copy to clipboard operation
gohugo-theme-ananke copied to clipboard

Add share option with Web Share API

Open peter-jerry-ye opened this issue 2 years ago • 3 comments

Hello,

I'm turning my blog into a PWA, and I would like to allow user to share the page directly after the site is installed (meaning they can't use the share button of the browser). I think this can be achieved by using the Web Share API.

So maybe we can add an option in social share&follow which is direct share with web share api?

Thanks.

peter-jerry-ye avatar Apr 28 '22 05:04 peter-jerry-ye

Do you have UX examples of this? I'm not familiar.

regisphilibert avatar May 06 '22 13:05 regisphilibert

Hello,

Here's an example provided by MDN: https://mdn.github.io/dom-examples/web-share/

peter-jerry-ye avatar May 06 '22 14:05 peter-jerry-ye

Seems a bit early for this. But wouldn't mind a PR to test feasibility if anyone volunteers.

regisphilibert avatar May 20 '22 18:05 regisphilibert