DEV Community

Cover image for Using the native web share JavaScript API

Using the native web share JavaScript API

Chris Bongers on July 07, 2022

Did you know there is a native share function you can invoke with JavaScript? You might have seen them around on the internet. If not, I've added ...
Collapse
 
tqbit profile image
tq-bit

Well I'll be damned this looks like a cool api to use. Hope it'll soon receive more browser support.

Thanks a lot for sharing (y)

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yep!
Pretty cool to use and your giving the end user a native feel, which is always a bonus.

Collapse
 
rafaelcg profile image
Rafael CorrΓͺa Gomes

That's amazing, thank you for sharing it!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed this Rafael πŸ₯³

Collapse
 
lukeecart profile image
Luke Cartwright

Thank you very much for sharing!
Excuse the pun πŸ˜…

Collapse
 
dailydevtips1 profile image
Chris Bongers

Haha love it Luke. πŸ˜‚

And you are welcome πŸ’ͺ

Collapse
 
krishnaagarwal profile image
Krishna Agarwal

Amazing post as always!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thanks Krishna πŸ₯³

Collapse
 
leeuw profile image
leeuw

amazing!! thanks πŸ‘

Collapse
 
sebadopico profile image
sebadopico

Amazing post

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thank you πŸ™

Collapse
 
timhuang profile image
Timothy Huang

Cool! It’s easy to call sharing url from web browser. Thanks for sharing.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed it Timothy πŸ™

Collapse
 
mrcaidev profile image
mrcaidev

Not supported yet on the latest Chrome (103) :( Hope browsers could catch up soon. Thanks for sharing!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yep, well I personally think for browsers it's fine, for mobile is where it really shines.
I still kind of like that we can have our own more advanced fallback on desktop.

Collapse
 
fayomihorace profile image
Horace FAYOMI

That is great, thanks for sharing the share feature ^_^.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed it πŸ’–

Collapse
 
ra1nbow1 profile image
Matvey Romanov

So great. Thank you

Collapse
 
dailydevtips1 profile image
Chris Bongers

Happy to you enjoyed it Matvey πŸ₯³

Collapse
 
tony199555 profile image
Tony Yu

I am surprised that Safari has full support of web share API before any other major browser lol.

Thanks for sharing (:wink)

Collapse
 
dailydevtips1 profile image
Chris Bongers

Yeah crazy to think Safari does it out of all the modern browsers πŸ˜‚