跳转到内容

兼容性

兼容性是一个 BCD 式数据浏览器,回答*「这个特性能在 PWA 里用吗?」*—— 跨操作系统、浏览器、版本,并且独有地按真实浏览器份额加权的国家/地区有效可达率。 它还覆盖决定能力能否真正落地生产的生态政策维度(广告网络、支付、商店接纳), 而不仅是特性是否发布。

每个特性都有规范页面,包含 OS × 浏览器 × 版本矩阵、生态政策行、完整溯源, 以及机器可读的 JSON 导出。

特性类别摘要目标数
Async Clipboard APICapabilitiesProgrammatic read/write access to the system clipboard via navigator.clipboard, gated by a user gesture or the clipboard-read/clipboard-write permission.4
Background SyncCapabilitiesDefer actions until the user has stable connectivity via the service worker.7
Badging APIEngagementSet an app-icon badge (count or dot) on the installed PWA.7
File System Access APICapabilitiesRead and write to the user's local file system with explicit permission.7
Geolocation APICapabilitiesRead the user's geographic position with explicit permission, one-shot or via a watch.6
Install Prompt (beforeinstallprompt)InstallationProgrammatic control over the PWA install prompt via the beforeinstallprompt event.7
Manifest Protocol HandlersManifestRegister a PWA to handle custom or allow-listed URL protocols via manifest.protocol_handlers.7
manifest: idManifestThe id member provides a stable identity for a PWA, decoupled from start_url.7
manifest: share_targetManifestThe share_target member registers the installed PWA as a target in the OS native share sheet.6
manifest: shortcutsManifestThe shortcuts member adds quick-action entries to the OS context menu of an installed PWA.7
Payment Request APICommerceBrowser-mediated checkout sheet collecting payment and contact details.7
Persistent StorageStoragenavigator.storage.persist() requests protection from automatic data eviction.8
Service WorkersCapabilitiesThe programmable network proxy that powers offline, caching, and push for PWAs.7
Trusted Web Activity availabilityInstallationThe Android mechanism for shipping a PWA through the Google Play Store as a full-screen Chrome Custom Tab with Digital Asset Links verification.1
Web App Manifest: displayManifestThe display member chooses the installed app's window mode (standalone, fullscreen, minimal-ui, browser).7
Web App Manifest: display_overrideManifestThe display_override member provides a fallback chain of display modes, letting a PWA prefer newer modes while falling back to standard modes.6
Web App Manifest: iconsManifestThe icons member supplies home-screen, task-switcher, and install-dialog imagery for a PWA. It also supports maskable icons that adapt to platform-specific shapes.8
Web App Manifest: name / short_nameManifestThe name and short_name members define how a PWA is labelled in install prompts, the app shelf, and the home screen.7
Web App Manifest: scopeManifestThe scope member fences the installed app's navigation boundary.7
Web App Manifest: screenshotsManifestThe screenshots member supplies richer install UI in browsers and store listings.7
Web App Manifest: start_urlManifestThe start_url member identifies the URL that loads when a user launches an installed PWA from the home screen or app shelf.7
Web PushEngagementServer-sent push messages delivered via the Push API + service worker, even when the app is closed.7
Web Share APICapabilitiesThe Web Share API invokes the platform-native share sheet so users can share text, URLs, or files from a PWA. Share Target (receiving shared content via manifest share_target) is scoped separately; its browser-compat-data coverage is not yet tracked in MDN BCD.6
WebAPK availabilityInstallationThe mechanism Chrome uses to install PWAs as real Android apps with their own package identity, splash screen, and deep-link registration.1
WebAuthn / PublicKeyCredentialCapabilitiesPublicKeyCredential lets a PWA register and authenticate users with public-key credentials via platform or roaming authenticators instead of passwords. This matrix reflects baseline PublicKeyCredential availability only — passkey (discoverable credential, which may be device-bound or synced) support arrived later and depends on additional platform integration not captured by these version numbers.5
WebRTC (RTCPeerConnection)CapabilitiesEstablish real-time peer-to-peer audio, video, and data connections directly between browsers.5

已收录 26 个特性,持续增长。

兼容性数据由机器可读 JSON 渲染,并以 Dataset JSON-LD 暴露,每个特性的 JSON 导出位于 /compatibility/<feature>.json,方便搜索与 LLM 引用原始数据。