Declarative Web Push support? "web_push" additional field support

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/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ệ
csharp
Lĩnh vực
api

Hướng nghiên cứu

Issue không nêu tệp nào trong repository, test hay entry point. Hãy bắt đầu bằng việc tìm nơi các payload của thông báo web-push được mô hình hóa hoặc tuần tự hóa trong C# SDK, sau đó so sánh đầu ra của SDK với trường web_push trong ví dụ. Hoàn thành nghĩa là SDK có thể tạo ra trường được yêu cầu mà vẫn bảo toàn hành vi hiện có của payload thông báo, đồng thời có coverage cho định dạng kết quả.

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

Mô tả

needs-triage

Any idea about how to format the message to make it compliant with Declarative Web Push?

It only is a minor update to how messages should be formatted, but I don't see how this can be performed with your library (which is excellent work, otherwise).

Sending Declarative Web Push-compliant messages is required for Safari not to drop push subscriptions after some time automatically (see https://github.com/firebase/firebase-js-sdk/issues/8010). Note this behavior, nicknamed Intelligent Tracking Prevention (ITP), may happen with macOS Safari, not just with iOS. Basically, the client service worker may be killed anytime on client machines, and because of that, incoming notifications can no longer be displayed... unless there is a specific field in the payload indicating to the browser it has a green light to display a notification by itself, without even going through the service worker:

{
  "web_push": 8030, // makes push message Declarative Web Push-compliant
  "notification": {
    "title": "...",    
    "body": "...",    
  }
}

A short but good video about the subject, made by Apple, is provided here.

Ngôn ngữ chính
C#
Star
408
Fork
147
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
10

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 firebase/firebase-admin-dotnet

Tất cả issue của firebase/firebase-admin-dotnet

Issue tương tự

Thêm issue về C#

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.