firebase / firebase/firebase-android-sdk

[Feature Request] FCM build notification when app is in foreground

未關閉
#1,663 2 則留言 8 個 reaction 已指派 0 人 在 GitHub 檢視
api: messaging type: feature request
主要語言
Java
星號
2.6k
分支
710
平均合併
3 天 1 小時
30 天內合併 PR
34

描述

## What feature would you like to see?
With FCM when the app is in background the OS create a notification that has the image, icon and everything...

but to build a notification that looks the same when the app is in foreground you shouldn't be having to do it manually, I think we should have a method that receive the Notification object and provides the Notification Builder already filled with everything.

For instance I think the OS also download the image (if there is one) and build a bitmap to add to the notification and lot of other stuff.

## How would you use it?
Instead of having to manually support all the things that Firebase console allow with a notification on my foreground app I would like to just have the option to make it "work" the same way of the OS one produce when the app is in background (still intercepting, but having an easy way to produce the same result).

貢獻指南

開啟貢獻指南

研究方向

首先檢視 Firebase Android SDK 對前景和背景應用程式的 FCM 通知處理。確認通知 payload 在哪裡處理,以及所要求的 builder API 應如何整合,接著將完成標準定義為:產生具有與背景通知相同之支援內容的前景通知。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, firebase, java
領域
mobile-dev
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。