firebase / firebase/firebase-android-sdk

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

Đang mở
#1,663 2 bình luận 8 reaction 0 người được giao Xem trên GitHub
api: messaging type: feature request
Ngôn ngữ chính
Java
Star
2.6k
Fork
710
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
34

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.