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

Periodic Background Sync

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for Jxck Jxck
April 17, 2020

Periodic Background Sync

LT about periodic background sync at #remo_study

Avatar for Jxck

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