大网数据广告活动
Web 标准与前端开发

Progressive Web Apps reference

· 52CE 我爱测

This reference describes the technologies, features, and APIs that Progressive Web Apps (PWAs) can use to offer a great user experience.

This reference describes the technologies, features, and APIs that Progressive Web Apps (PWAs) can use to offer a great user experience.

Web app manifest

  • Web app manifest members
    • : Developers can use web app manifest members to describe a PWA, customize its appearance, and more deeply integrate it into the operating system.

Service Worker APIs

Communication with the app

The following APIs can be used by a service worker to communicate with its associated client PWA:

Offline operation

The following APIs can be used by a service worker to make your app work offline:

  • Cache
    • : A persistent storage mechanism for HTTP responses used to store assets that can be reused when the app is offline.
  • Clients
    • : An interface used to provide access to the documents that are controlled by the service worker.
  • FetchEvent
    • : An event, dispatched in the service worker with every HTTP request made by the client PWA. The event can be used to either send the request to the server as normal and save the response for future use, or intercept the request and immediately respond with a response cached previously.

Background operation

The following APIs can be used by a service worker to perform tasks in the background, even when your app is not running:

Other web APIs

  • IndexedDB
    • : A client-side storage API for significant amounts of structured data, including files.
  • Badging API
    • : A method of setting a badge on the application icon, providing a low-distraction notification.
  • Notifications API
    • : A way to send notifications that are displayed at the operating system level.
  • Web Share API
    • : A mechanism for sharing text, links, files, and other content to other apps selected by the user on their device.
  • Window Controls Overlay API
    • : An API for PWAs installed on desktop operating systems that enables hiding the default window title bar, enabling displaying the app over the full surface area of the app window.

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。