Bug 214548
Summary: | Feature Request: Implement the Background Fetch API | ||
---|---|---|---|
Product: | WebKit | Reporter: | Thomas Steiner <tomac> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | beidson, cedric, fgnass, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Thomas Steiner
Spec: https://wicg.github.io/background-fetch/
Article: https://developers.google.com/web/updates/2018/12/background-fetch
Use case: Fetching (as in down- or uploading) content without the page being open.
Example:
```js
navigator.serviceWorker.ready.then(async (swReg) => {
const bgFetch = await swReg.backgroundFetch.fetch('my-fetch', ['/ep-5.mp3', 'ep-5-artwork.jpg'], {
title: 'Episode 5: Interesting things.',
icons: [{
sizes: '300x300',
src: '/ep-5-icon.png',
type: 'image/png',
}],
downloadTotal: 60 * 1024 * 1024,
});
});
```
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Felix Gnass
We would love to add background fetch to the PWA of German public broadcaster ZDF (https://pwa.zdf.de) so having support for this in Safari too would be highly appreciated.
Radar WebKit Bug Importer
<rdar://problem/66086044>