w3c / push-api

Push API
https://w3c.github.io/push-api/
Other
145 stars 40 forks source link

Propose enabling background sync from `pushsubscriptionchange` events #240

Closed beverloo closed 2 years ago

beverloo commented 7 years ago

We advocate use of it, so we need to make sure it works. I'll file an issue.

martinthomson commented 7 years ago

@beverloo, can you mention the issue when you do so so we can see its status from here?

NekR commented 7 years ago

So it doesn't in browsers (Firefox?) right now? Also, what about registering Background Sync from push event?

ghost commented 7 years ago

Firefox doesn't implement background sync yet, but you can follow this bug if you'd like. IIUC, step 6 in the SyncManager.register algorithm means you can't register a background sync from either handler when the page isn't active. That restriction can be lifted, though, and a push event might be a good opportunity to show a notification and schedule a sync for a later time.

NekR commented 7 years ago

@kitcambridge Makes sense, thank you!

marcoscaceres commented 3 years ago

Marking as V2, as background sync is still not a widely supported thing.

marcoscaceres commented 2 years ago

Closing as out of scope for now.