Allow atomic push resubscribe

Đang mở
#292 3 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
HTML
Star
158
Fork
43
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của w3c/push-api

Tất cả issue của w3c/push-api

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.