Question: what about shared device

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
web-dev

Hướng nghiên cứu

Start by reading the Push API specification around service workers and subscription ownership. The issue describes notifications crossing between users who share a browser, but does not identify a file, test, or expected behavior. First clarify how subscriptions should be isolated across accounts and what should happen on logout or session expiration; done would require an agreed behavior and tests for those cases.

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

Mô tả

As i understood, endpoint is done against browser. So what happens if 2 users use same browser ?

  • user1 subscribe to notifications; then log out
  • user2 use the same device (let say a desktop) and same browser and subscribe to notifications
  • user2 will receive user1 notifications !
  • coming back user1 will receive user2 notifications...

I know a solution could be to unregister service worker on user1 logout, but what about session expiration and / or not logged out user (just close pwa) ? And i imagine unregister sw could have related miss configuration (no more notification ?)

I'm not sure to be clear, but did someone have this situation to take care ?
Thanks

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ề Web Dev

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.