NativeScript / NativeScript/firebase
[firebase-messaging] Missing 'foreground' property in onMessage callback on Android
まだ誰も着手していません。
- 主要言語
- 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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