I'm sending Push Notifications using Firebase Cloud Messaging. I've used different custom layouts (RemoteViews) for collapsed and expanded notifications. The problem is the notification with custom layouts only shows when the app is active/foreground. It shows the default/simple notification when the app is in the background or killed.
In the following screenshot the top notification is in case of the app is in the background or killed and shows without custom layouts and the below notification is in case of the app is active and shows with custom layouts (which I also want in case of app in background or killed).
Any help would be much appreciated, as I'm stuck in this problem.