IT lexicon › Web › Web Share API

Web Share API

Web På svenska → Updated: 2026-05-23

Browser API to trigger the OS's native share sheet — the user picks the destination (SMS, Mail, AirDrop, any app) instead of the app having to implement each one.

navigator.share({ title, text, url, files }) returns a Promise. Must be called from a user gesture and requires HTTPS. The Web Share Target API is the receiving side — a PWA can register itself as a share target.

Stable in Safari (iOS/macOS), Chrome Android, Edge. Chrome desktop since 2023, Firefox only mobile. Default in modern mobile PWAs; replaces endless rows of "Share to Twitter/Facebook/Mail" buttons.

← Back to the lexicon