firebase / firebase/firebase-android-sdk
[Feature Request] FCM build notification when app is in foreground
- 主要语言
- Java
- 星标
- 2.6k
- 派生
- 710
- 平均合并
- 2 天 23 小时
- 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