Allow atomic push resubscribe

Aperta
#292 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
api

Direzione di ricerca

Start by reading the Push API subscription refresh algorithm linked in the issue and the surrounding PushManager specification. Work out how an atomic resubscribe method would interact with pushsubscriptionchange and subscription failure; done would mean the proposed behavior and returned promise are specified clearly. The thread has been inactive for years, so check whether the proposal is still relevant before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I was wondering if we can consider having an atomic resubscribe method for push? Apparently there are sites that unsubscribe and then try to subscribe again and then they lose their subscription if the browser is closed, for instance. It would be ideal if we were able to subscribe another channel and then if it succeeds, we remove the old channel.

After chatting with @beverloo, it sounded like we should have something like PushManager.refreshSubscription() that invokes the refresh algorithm and would return a Promise<void> that'd be resolved when the pushsubscriptionchange event has finished executing.

Lingua principale
HTML
Stelle
158
Fork
43
Merge medio
2g 6h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di w3c/push-api

Tutte le issue di w3c/push-api

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.