keyboard_backspace wifi_off

Background Fetch API

This feature is not (yet) supported on your device

This feature is implemented in Safari but not yet functional

The Background Fetch API enables an app to download large files in the background even when the app is not running. It pauses the downloads when the app is offline and continues to download when the app is back online.

The downloading can even be started while the app is offline. The process will then be started once the app is online again.

Demo

Below you can start downloading three files at a deliberately slow speed to simulate a large download. Close the app to see the downloads continue in the background. Go offline (for example, by enabling flight mode) to see that the downloads are paused. Go back online to see the downloads continue in the background.

When downloads are running in the background and you open the app again, you will see the progress continue.

  • Thievery Corporation Track 1 download
  • Thievery Corporation Track 2 download
  • Thievery Corporation Track 3 download

Documentation

Background Fetch API on MDN

Browser support

Background Fetch API on caniuse.com

What PWA Can Do Today A showcase of what is possible with Progressive Web Apps today