Skip to Content
Platform.Ontology

Web Share Target

Lets an installed web app appear in the system share sheet.

Works without askingHome screen and system linksSharingWeb browsersWhile you use it

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

BrowserStatusFirst versionReleasedNote
ChromeSupported892021-03-02None
EdgeSupported892021-03-04None
FirefoxNot supportedNot availableNot listedNone
SafariNot supportedNot availableNot listedNone
Safari on iPhoneNot supportedNot availableNot listedNone
Chrome on AndroidSupported762019-07-30None
Samsung InternetSupported12.02020-06-19None

How a site asks for it

APImanifest share_target {action,method,enctype,params}
Browser compat keysmanifests.webapp.share_target
How access is grantedinstall
What the user seesNone until share; app listed in sheet
Needs a secure context (HTTPS)Yes
Needs a user gestureNo
How long it lastsPer origin
How to take it backSite settings
Inside an iframeSame as top level; cross-origin iframes need a permissions policy where listed

Typical flow

  1. Call the API
  2. Browser applies its access rules
  3. 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

FieldTypeUnitRangePrecision
params.title/text/urlstringNoneform fieldsNot listed
filesbinarybytesfiles shared, size limited by OSNot 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

TypeExampleApps
socialYou share a photo from your gallery to a web social app, which opens a new post with the photo ready.Pinterest, X
productivityYou share a link from your browser to a web notes app to save it for later.Google Keep
musicYou share a song link to a web playlist app to add it.None named
messagingYou share text from a web page to a web chat to send it to a friend.Telegram Web
shoppingYou share a product from a news site to a web wishlist app.None named
gamesYou share a screenshot to a web game community app to post a tip.None named
creativeYou 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

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction1 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

History

  • 2019, Chrome 76: Android
  • 2020, Chrome 89: Desktop

Sources

How well checked: Checked against real behavior.

On this page