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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jxck
April 17, 2020
Technology
0
620
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
1
330
Yearly Web 2019
jxck
0
230
webbundle_study
jxck
2
690
Other Decks in Technology
See All in Technology
22nd ACRi Webinar - 1Finity Tamura-san's slide
nao_sumikawa
0
130
【Developers Summit 2026】Memory Is All You Need:コンテキストの「最適化」から「継続性」へ ~RAGを進化させるメモリエンジニアリングの最前線~
shisyu_gaku
3
200
AI時代のAPIファースト開発
nagix
1
140
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
2
1k
ファイルシステムの不整合
sat
PRO
2
110
GitHub Copilot CLI を使いやすくしよう
tsubakimoto_s
0
190
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
94k
旅先で iPad + Neovim で iOS 開発・執筆した話
zozotech
PRO
0
360
チーム開発の基礎_研究を事業につなげるために
cyberagentdevelopers
PRO
7
3.5k
プレビュー版のDevOpsエージェントを現段階で触ってみた
ad_motsu
1
170
意外と知ってそうでしらない、Reserved Instances の世界
mappie_kochi
0
150
ZOZO.swift #2
zozotech
PRO
0
280
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.1k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
110
[SF Ruby Conf 2025] Rails X
palkan
2
780
AI: The stuff that nobody shows you
jnunemaker
PRO
2
300
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
200
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
130
Building Applications with DynamoDB
mza
96
6.9k
Balancing Empowerment & Direction
lara
5
910
The Spectacular Lies of Maps
axbom
PRO
1
550
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Fireside Chat
paigeccino
41
3.8k
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