NativeScript / NativeScript/firebase

[firebase-messaging] Missing 'foreground' property in onMessage callback on Android

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

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

android enhancement
主要言語
TypeScript
スター
62
フォーク
53
平均マージ
8日 4時間
マージ済み PR(30日)
2

説明

In many instances it is desirable to handle notifications differently depending on if the message was received while the app is in the foreground vs when it is in the background. There is currently no way to determine this right now.

The old Firebase plugin by Eddy had a 'foreground' boolean property to accomplish this. Then in the 'onMessage' callback you could decide how to handle it.

https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/MESSAGING.md

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、現在の Android の onMessage callback の動作を、リンク先の Eddy Firebase messaging ドキュメントと比較し、その後、callback payload がどこで組み立てられているかを追跡します。callback が foreground と background のメッセージ配信を区別する foreground boolean を公開し、動作がドキュメント化された例と一致すれば完了です。

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

評価

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

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

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