Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Periodic Background Sync

Jxck
April 17, 2020

Periodic Background Sync

LT about periodic background sync at #remo_study

Jxck

April 17, 2020
Tweet

More Decks by Jxck

Other Decks in Technology

Transcript

  1. // register PBS const name = 'periodic-background-sync' const status =

    await navigator.permissions.query({name}) if (status.state === 'granted') { await registration.periodicSync.register('refresh', { minInterval: 12 * 60 * 60 * 1000 // 12h }) }
  2. Periodic Background Sync enables... • Installed App via A2HS •

    Enough Site-Engagement • Connected to Known Network • Android Chrome only