$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Periodic Background Sync
Search
Jxck
April 17, 2020
Technology
0
610
Periodic Background Sync
LT about periodic background sync at #remo_study
Jxck
April 17, 2020
Tweet
Share
More Decks by Jxck
See All by Jxck
IE Graduation (IE の功績を讃える)
jxck
22
16k
IE Graduation Certificate
jxck
6
6.2k
RFC 9111: HTTP Caching
jxck
1
740
tc39_study_2
jxck
1
13k
IETF における ABNF とプロトコルパーサの話 / ABNF for Protocol Parser @ IETF
jxck
2
1.2k
Web Components 元年 v3 / Web Components first year v3
jxck
1
1.1k
Podcast over PWA
jxck
0
310
Yearly Web 2019
jxck
0
220
webbundle_study
jxck
2
670
Other Decks in Technology
See All in Technology
mairuでつくるクレデンシャルレス開発環境 / Credential-less development environment using Mailru
mirakui
5
580
意外と知らない状態遷移テストの世界
nihonbuson
PRO
1
160
Fashion×AI「似合う」を届けるためのWEARのAI戦略
zozotech
PRO
2
1.1k
たまに起きる外部サービスの障害に備えたり備えなかったりする話
egmc
0
360
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
260
AWSに革命を起こすかもしれない新サービス・アップデートについてのお話
yama3133
0
460
LayerX QA Night#1
koyaman2
0
190
日本Rubyの会: これまでとこれから
snoozer05
PRO
5
220
AI との良い付き合い方を僕らは誰も知らない
asei
0
220
フィッシュボウルのやり方 / How to do a fishbowl
pauli
2
350
1人1サービス開発しているチームでのClaudeCodeの使い方
noayaoshiro
2
550
Strands AgentsとNova 2 SonicでS2Sを実践してみた
yama3133
1
1.5k
Featured
See All Featured
Marketing to machines
jonoalderson
1
4.3k
How to Talk to Developers About Accessibility
jct
1
83
How to Ace a Technical Interview
jacobian
281
24k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
2
61
Information Architects: The Missing Link in Design Systems
soysaucechin
0
710
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
200
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
0
160
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
200
The Curse of the Amulet
leimatthew05
0
4.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Transcript
Periodic Background Sync Periodic Background Sync
None
Background Sync self.on('sync', (e) => { // retry failed request
while // offline in background })
Periodic Background Sync self.on('periodic-sync', (e) => { // periodically refresh
contents // up to date in background. })
Use Case - Podcast Feed Update
// 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 }) }
Security Consideration
#4: 156.74.xxx.xxx #1: 14.102.xxx.xxx #2: 81.177.xxx.xxx #3: 24.152.xxx.xxx Background Sync
Tracking also • crypto mining • bot net
Known Network
Permission In Chrome
Permission Model Permission Dialog ? User Gesture ? Feature Policy
? Add to Home Screen !!
Native App Permission -> Install Web App Permission -> Install
Restriction In Chrome
• Periodic depends on site-engagement. • Only fire under known
network.
Site Engagement
Periodic Background Sync enables... • Installed App via A2HS •
Enough Site-Engagement • Connected to Known Network • Android Chrome only
Work in progress...
None