I implemented the firebase cloud messaging (FCM) service in my app and I get notifications with my custom layout but just when the app is in the foreground and the reason is clear, It is because of existing setCustomContentView(myContentView) in onMessageReceived and we all know that onMessageReceived handle notification just when the app is in the foreground.
Now, I'm going to know is there a way to set the same custom layout for the notifications which will be shown when the app is in the background?


