Web Share Target
Lets an installed web app appear in the system share sheet.
In one line
Can appear in your device's share sheet and receive links, text or files you send it
Lets an installed web app appear in the system share sheet.
Receives text, URLs and files other apps share, which is how a PWA becomes a share destination.
What it can and can't do
What the user does: You install the web app, then pick it from the share sheet in another app
It can
- Show up as a choice in the share sheet
- Receive text, links or files you share to it
- Open the app with what you shared
It cannot
- See anything until you pick it in the share sheet
- Work for a site that is not installed
- Work in Firefox, Safari or on iPhone
- See what you shared with other apps
How it differs between platforms: Chrome, Edge and Samsung Internet on computers and Android. Safari, Firefox and iPhone do not support it.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 89 | 2021-03-02 | None |
| Edge | Supported | 89 | 2021-03-04 | None |
| Firefox | Not supported | Not available | Not listed | None |
| Safari | Not supported | Not available | Not listed | None |
| Safari on iPhone | Not supported | Not available | Not listed | None |
| Chrome on Android | Supported | 76 | 2019-07-30 | None |
| Samsung Internet | Supported | 12.0 | 2020-06-19 | None |
How a site asks for it
| API | manifest share_target {action,method,enctype,params} |
| Browser compat keys | manifests.webapp.share_target |
| How access is granted | install |
| What the user sees | None until share; app listed in sheet |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| How long it lasts | Per origin |
| How to take it back | Site settings |
| Inside an iframe | Same as top level; cross-origin iframes need a permissions policy where listed |
Typical flow
- Call the API
- Browser applies its access rules
- Page receives the result
Data you get
What comes back: Lets an installed web app appear in the system share sheet.
Shape: object
How often: on demand
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
params.title/text/url | string | None | form fields | Not listed |
files | binary | bytes | files shared, size limited by OS | Not listed |
Technical limits
- Chrome and Samsung only
- Needs installed PWA
The story
What it is
An installed web app can show up in your share sheet, so you can send things to it.
For you
When you share a photo or link from another app, you see the web app in the list. Tap it and it opens with your item ready. It works like any other app.
For makers
Makers get a spot in the share sheet next to native apps, which brings content in with little effort. It is key for social, notes and storage apps. It only works once the app is installed.
Where you see it
| Type | Example | Apps |
|---|---|---|
| social | You share a photo from your gallery to a web social app, which opens a new post with the photo ready. | Pinterest, X |
| productivity | You share a link from your browser to a web notes app to save it for later. | Google Keep |
| music | You share a song link to a web playlist app to add it. | None named |
| messaging | You share text from a web page to a web chat to send it to a friend. | Telegram Web |
| shopping | You share a product from a news site to a web wishlist app. | None named |
| games | You share a screenshot to a web game community app to post a tip. | None named |
| creative | You share a picture to a web editor to start editing at once. | None named |
Risks
- Only installed apps
- Can receive unwanted files
What the platform says
- MDN Web Docs: share_target. Lets an installed web app appear in the system share sheet and receive shared text, links and files.
Good uses and abuse
Legitimate uses
- Notes and social apps
Known abuse
- None
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2019, Chrome 76: Android
- 2020, Chrome 89: Desktop
Sources
How well checked: Checked against real behavior.