firebase / firebase/firebase-android-sdk

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

Open
#1,663 2 comments 8 reactions 0 assignees View on GitHub
api: messaging type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 23h
Merged PRs (30d)
34

Description

## 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).

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Firebase Android SDK's FCM notification handling for foreground and background apps. Determine where notification payloads are processed and how the requested builder API would fit, then define completion around producing foreground notifications with the same supported content as background notifications.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, java
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.