firebase / firebase/firebase-android-sdk

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

Aperta
#1,663 2 commenti 8 reazioni 0 assegnatari Vedi su GitHub
api: messaging type: feature request
Lingua principale
Java
Stelle
2.6k
Fork
710
Merge medio
2g 9h
PR unite (30g)
31

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.