FCM Notifications with image
This example presents a solution on how to receive Firebase notifications with image received while the app is in foreground.
Notifications received in app background are sent to system tray and handled by Firebase SDK as usual.
The examle utilizes Glide for image fetching and caching, as well as coroutines for handling the background work with a timeout of 5 seconds, which is the approximate life of the Notification Service (FCM SDK has the same timeout when handling foreground).
If you're interested in how FCM used to work: