Declarative Web Push support? "web_push" additional field support

オープン
#488 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
api

調査の方向性

Issue では、リポジトリのファイル、テスト、エントリポイントのいずれも指定されていません。まず、C# SDK で web-push 通知のペイロードがモデル化またはシリアライズされている場所を見つけ、次にその出力を例の web_push フィールドと比較してください。SDK が既存の通知ペイロードの動作を維持したまま要求されたフィールドを生成でき、結果の形式がテストでカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
408
フォーク
147
平均マージ
1日 3時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/firebase-admin-dotnet のほかの issue

firebase/firebase-admin-dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。