Skip to Content
Platform.Ontology

Web Share

Opens the phone's native share sheet with text, a link or files.

Does something on your deviceHome screen and system linksSharingWeb browsersWhile you use it

In one line

Can open your phone's share sheet with a link, text or files, only after a tap

Opens the phone's native share sheet with text, a link or files.

The person picks the target app. The site does not learn which one.

What it can and can't do

What the user does: You tap a Share button on the page

It can

  • Open the share sheet with text, a link or files
  • Let you pick the app to send to
  • Share one item at a time

It cannot

  • Open the share sheet without a tap
  • See which app you picked
  • Share anything you did not offer
  • Work in Firefox on most computers yet

How it differs between platforms: Chrome, Edge, Safari and phone browsers support it. Firefox support is limited.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported1282024-08-20None
EdgeSupported932021-09-02None
FirefoxBehind a flag71Not listedBehind flag.
SafariSupported12.12019-03-25None
Safari on iPhoneSupported12.22019-03-25None
Chrome on AndroidSupported612017-09-05None
Samsung InternetSupported8.02018-07-18None

How a site asks for it

APInavigator.share({title,text,url,files}), navigator.canShare()
Permissions policyweb-share
Browser compat keysapi.Navigator.share
How access is grantedgesture
What the user seesOS share sheet
Needs a secure context (HTTPS)Yes
Needs a user gestureYes
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: Opens the phone's native share sheet with text, a link or files.
Shape: object
How often: on demand

FieldTypeUnitRangePrecision
fileslistbytesplatform limit; images, video, audio, pdf, textNot listed

Technical limits

  • Needs user gesture
  • Firefox only behind a flag
  • Cannot read the chosen target

The story

What it is

A page can open your phone's normal share sheet with a link, text or file.

For you

You tap a Share button, and your device's own share menu appears. You pick an app or a person. Nothing is shared until you choose.

For makers

Makers skip building buttons for each network, which saves work and clutters less. Share events bring new visitors. It must start from a tap, so it cannot fire by itself.

Where you see it

TypeExampleApps
newsA news article has one Share button that opens the share sheet for any chat or social app.BBC News
gamesA browser game shares your high score with a friend through your messages app.None named
shoppingA store shares a product link with a friend for a gift idea.Etsy
musicA music site shares a track to your story or chat.None named
travelA travel site shares a trip plan with a travel partner.None named
creativeA web photo tool shares an edited picture through the share sheet.None named
socialA social site shares a post link to another app.Pinterest
productivityA document site shares a view link with a coworker in one tap.Google Docs

Risks

  • Can leak private links
  • Easy to share by mistake

What the platform says

  • web.dev: Web Share API. Lets a site hand off a link, text or file to the share sheet, so you can send it with any app on your device.

Good uses and abuse

Legitimate uses

  • Share buttons

Known abuse

  • None notable

Scores

ScoreValueMeaning
Sensitivity1 of 5How revealing the data is
Utility4 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

  • 2016, Chrome 61: Android share
  • 2018, Safari 12.1: Safari
  • 2024-08, Chrome 128: Desktop Chrome

Sources

How well checked: Checked against real behavior.

On this page