PWA & Install

Share Target

Probing…

Share Target is a web platform capability in the PWA & Install category. Receive shares from other apps into this PWA (manifest `share_target`). Runtime-probed via install-prompt proxy. Supported in Chromium 76+; not available in Firefox and Safari. Requires a secure context (HTTPS or localhost) and the site to be installed as an app.

Secure contextInstalled app

Try it

Loading demo…

Code

// In the manifest, register this PWA as a share target:
// "share_target": { "action": "/share", "method": "GET",
//   "params": { "title": "title", "text": "text", "url": "url" } }

// The launched page then reads the shared data from the URL:
const p = new URL(location.href).searchParams
console.log(p.get('title'), p.get('text'), p.get('url'))

Browser support

Chromium
76
Firefox
No
Safari
No

Frequently asked questions

Which browsers support Share Target?

Supported in Chromium 76+; not available in Firefox and Safari.

Does Share Target require HTTPS?

Yes. Share Target needs a secure context, so it only works over HTTPS (or on localhost during development).

What is Share Target used for?

Receive shares from other apps into this PWA (manifest `share_target`). Runtime-probed via install-prompt proxy.

Can I try Share Target in my browser?

Yes. shwcs.net runs a live Share Target demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗