Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
750
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
AIエージェントを5分で一気におさらい!AIエージェント「構築」元年に備えよう
yakumo
1
130
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
Eight Engineering Unit 紹介資料
sansan33
PRO
0
6.1k
「エッジ×分散生成AI」の技術と変わる産業、そしてITの未来
piacerex
0
110
I tried making a solo advent calendar!
zzzzico
0
120
Keynoteから見るAWSの頭の中
nrinetcom
PRO
1
160
コールドスタンバイ構成でCDは可能か
hiramax
0
130
『君の名は』と聞く君の名は。 / Your name, you who asks for mine.
nttcom
1
140
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.5k
AI との良い付き合い方を僕らは誰も知らない (WSS 2026 静岡版)
asei
1
160
形式手法特論:コンパイラの「正しさ」は証明できるか? #burikaigi / BuriKaigi 2026
ytaka23
8
1.8k
AI: The stuff that nobody shows you
jnunemaker
PRO
1
130
Featured
See All Featured
Accessibility Awareness
sabderemane
0
29
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
200
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
37
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
110
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
530
Color Theory Basics | Prateek | Gurzu
gurzu
0
170
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
410
ラッコキーワード サービス紹介資料
rakko
0
1.9M
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
210
How Software Deployment tools have changed in the past 20 years
geshan
0
31k
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