# Introducing the Web Share API | Web | Google Developers

**URL:** https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515
**Category:** Feature
**Created:** [September 21, 2017, 2:47pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515 "2017-09-21T14:47:42Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 21, 2017, 2:47pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/1 "2017-09-21T14:47:42Z")

</div>

> **[Integrate with the OS sharing UI with the Web Share API  |  Articles  |  web.dev](https://web.dev/articles/web-share)**
>
> With the Web Share API, web apps are able to use the same system-provided share capabilities as platform-specific apps. The Web Share API makes it possible for web apps to share links, text, and files to other apps installed on the device in the same...

We can try switching the topic share icon action to the web share intent on supported platforms ( Chrome android for now)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 25, 2017, 10:42pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/2 "2017-09-25T22:42:57Z")

</div>

Ok, did a quick try at this while I was in the plane and after some cleaning up sent a [pull request](https://github.com/discourse/discourse/pull/5204).

Here is it in action:

[https://global.discourse-cdn.com/meta/original/3X/5/9/596e3dc1aba11684adcfe9144572dac5d2658e31.mp4](https://global.discourse-cdn.com/meta/original/3X/5/9/596e3dc1aba11684adcfe9144572dac5d2658e31.mp4)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 26, 2017, 2:20am UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/3 "2017-09-26T02:20:41Z")

</div>

This only happens on Android yes? Seems fairly safe to me then. @gerhard can you review?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 26, 2017, 9:47am UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/5 "2017-09-26T09:47:28Z")

</div>

It’s merged and it works great on Chrome 61. 👍

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 26, 2017, 9:56am UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/6 "2017-09-26T09:56:20Z")

</div>

I don’t have an android device to test, but I’m assuming this means users no longer have access to the “reply as linked topic” button that is normally next to the share buttons?

Can this functionality be put elsewhere? Or is there any way to add a custom button to the native share sheet?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 26, 2017, 10:27am UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/7 "2017-09-26T10:27:40Z")

</div>

It’s still there when you tap on the post’s time.

 ![Screenshot_20170926-121944](https://global.discourse-cdn.com/meta/original/3X/4/1/41a1581dbac37367663fc01027435651b96ec3df.png)

Only the share button uses the new functionality.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 26, 2019, 9:56pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/8 "2019-03-26T21:56:39Z")

</div>

It works on iOS 12.2 🎉

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/6/f6260c895a5446818210c7badecbb0c6fa86f388.jpeg)

---

<div class="post-metadata">

### Author: ![anon82467725](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anon82467725](https://meta.discourse.org/u/anon82467725)
#### Post date: [January 4, 2021, 2:20pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/9 "2021-01-04T14:20:21Z")

</div>

I would like to see this working in Chrome OS. Discourse is already a PWA, so the stars are aligning.

> **[Chromebook files sharing will soon work with PWAs](https://chromeunboxed.com/chromebook-files-sharing-will-soon-work-with-pwas/)**
>
> Chrome OS is quickly adding more and more ways to share files between users and devices. Just yesterday, I highlighted the upcoming "Nearby Sharing" feature that will use Bluetooth, Wi-Fi, and data to transfer files to, you guessed it, nearby...

I would also like to be able to share things **TO** discourse. For example, if I were to select an image to share to Discourse, it would create a new topic with the image inserted at the top. The title of the image would then be put as the topic title.

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/2/d2e0e1ecc419a25c7e115429193c033daa2c78e1.png)

I also know a lot of people who use Windows, so support for that platform would also be great. They want to use the native menu. It looks very clean.

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/f/0fd0986a3ff8a445e15217b4102cdb88b17c88b8.png)

The same can be said for macOS, although I’m not too sure how the implementation would work.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/1/e1ec5a587e4da013db736a2d618ea1bff950560e.jpeg)

TL;DR: I want to be able to share files **TO** Discourse in all major operating systems (both mobile and desktop). Along with that, I would like to be able to share links **FROM** Discourse on all major _desktop_ operating systems. 🙂

Also, does Firefox and Safari support the Web Share API? I originally thought that it was only supported in Chromium browsers.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 4, 2021, 3:59pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/10 "2021-01-04T15:59:51Z")

</div>

> [@anon82467725](#):
>
> I would also like to be able to share things **TO** discourse.

This already works since [Share to Discourse (via Android)](https://meta.discourse.org/t/share-to-discourse-via-android/103729).

At the moment we implement only the V1 of the API, so only text. The V2 share target API allows uploads, but that is a bit harder to implement. #pr-welcome.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [May 20, 2021, 7:38pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/19 "2021-05-20T19:38:55Z")

</div>

It’s still too early to enable this on non-mobile devices. Here’s a couple of examples.

- It won’t work on Chrome if you’re not using Windows or Chrome OS.
- It won’t work on Edge unless you’re using windows.
- It won’t work on Firefox regardless of what OS you use.

["web share" | Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/?search=web%20share)

I don’t see those issues being fixed any time soon.

---

<div class="post-metadata">

### Author: ![Justin\_Vega](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin_vega/32/159021_2.png) [@Justin\_Vega](https://meta.discourse.org/u/Justin_Vega)
#### Post date: [May 21, 2021, 12:46pm UTC](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/20 "2021-05-21T12:46:21Z")

</div>

Why not use Discourse’s own share sheet as a fallback if a browser doesn’t support the Web Share API?

Oh, and the Web Share API is still broken on iOS 14. 🙁
