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
570
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.1k
RFC 9111: HTTP Caching
jxck
1
690
tc39_study_2
jxck
1
9.9k
IETF における ABNF とプロトコルパーサの話 / ABNF for Protocol Parser @ IETF
jxck
2
1.1k
Web Components 元年 v3 / Web Components first year v3
jxck
1
1k
Podcast over PWA
jxck
0
270
Yearly Web 2019
jxck
0
180
webbundle_study
jxck
2
630
Other Decks in Technology
See All in Technology
水耕栽培に全部賭けろ
mutsumix
0
170
Next.jsと状態管理のプラクティス
uhyo
6
2.4k
ゆるくはじめるSLI・SLO
yatoum
1
150
ITベンダーから見る内製化支援の本質/in-house-dev
slsops
1
190
SONiCで構築・運用する生成AI向けパブリッククラウドネットワーク
sonic
1
550
やめシフ大集合!!~SHIFT卒業生座談会~ / 20250517 Hiroko Tamagawa & Ayako Ueno & Ryo Asou &Kei Ishimaru
shift_evolve
0
150
PythonツールであるpygnmiをSONiCのgNMIに対して使ってみた
sonic
0
340
スイッチのBMC、つかってますか?
sonic
0
500
Lakehouse в Лемана Тех. От архитектуры до оптимизации
emeremyanina1234
0
510
チェックツールを導入したけど使ってもらえなかった話 #GAADjp
lycorptech_jp
PRO
1
150
WindowsでGenesisに挑戦した話
natsutan
0
130
Design for Failure - リージョンとAZについて
yuki_ink
0
130
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
223
9.6k
The World Runs on Bad Software
bkeepers
PRO
68
11k
Thoughts on Productivity
jonyablonski
69
4.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
227
22k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
BBQ
matthewcrist
88
9.6k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
810
Scaling GitHub
holman
459
140k
How to Ace a Technical Interview
jacobian
276
23k
Become a Pro
speakerdeck
PRO
28
5.3k
Faster Mobile Websites
deanohume
307
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