I don't suppose you have a reduced example of the issue you're seeing? Would save me having to guess.
-
-
Replying to @jaffathecake
Sorry my bad, hope this helps, if not I can upload and send a linkpic.twitter.com/vVIfbmRXsf
1 reply 0 retweets 1 like -
Replying to @AaronLayton
https://jakearchibald.github.io/isserviceworkerready/demos/sync/ … - this seems to be working as expected on my phone. Is it working for you? Should show a notification when online.
1 reply 0 retweets 0 likes -
Replying to @jaffathecake
Interestingly no it does not work as you expect on Desktop, worked perfectly on Mobile. I have narrowed it down to the Offline setting in DevTools not working as expected. The Sync still acts like its online.
1 reply 0 retweets 0 likes -
Replying to @AaronLayton @jaffathecake
Are you sending the sync event via the Service Workers tab in DevTools?
1 reply 0 retweets 0 likes -
Replying to @ChromeDevTools @jaffathecake
@ChromeDevTools doesn't work correctly even if sending via DevTools - The issue seems to be Offline setting is not honouredpic.twitter.com/sKi4gQvE7H
1 reply 0 retweets 1 like -
Replying to @AaronLayton @jaffathecake
When app sends bg-sync event, the browser queues it until internet connection is back, and only then will SW *ever* get the event. So SW will never get bg-sync event while offline. Does that solve it for you? I bugged the team that this needs better UX ---
@kaycebasques1 reply 0 retweets 1 like -
Morning all, "So SW will never get bg-sync event while offline". I can reproduce the issue just by opening DevTools and ticking the offline button, the SW will *always* get the bg-sync event. If I go truly offline with Airplane mode, then the bg-sync event is delayed until online
2 replies 1 retweet 1 like -
Replying to @AaronLayton @ChromeDevTools and
Going truly offline by disabling network connection / airplane mode, works as expected. Hope this and my prev vid helps
@ChromeDevTools@jaffathecake@kaycebasquespic.twitter.com/86mTOHV1az1 reply 0 retweets 0 likes -
That's because the browser is queuing the event. The point is that DevTools just sends the event to the SW, it doesn't queue it. So sending the BG-S event while offline in DevTools is a non-sensical state.
1 reply 0 retweets 0 likes
TLDR the DevTools UX should disable BG-S simulation while offline. I agree that it's confusing, I'm just trying to explain the current state of things, that technically DevTools is working as expected
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.