'FCM push notification is not working in release branch when minify set to true

I have earlier tested many times FCM was working just fine, but now only in the release environment I am not able to get the push notification. I am using the deprecated Firebase messaging API. Is there any way to resolve this issue ??

Dependancies used :

implementation "com.google.firebase:firebase-messaging:21.0.0"
implementation "com.google.firebase:firebase-config:20.0.0"
implementation "com.google.firebase:firebase-core:18.0.0"

Not getting any error but not receiving notification and when I open the app the notification is present on the screen



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source