I am trying to send FCM notifications (between users on sending messages, friend requests etc.) in release app which is not receiving but they are sending/receiving very well in debug apk, i have searched about this and found some solutions which are not working for me
like this, I placed it in pro-guard rules but not working
 -keep class com.google.firebase.* {*;}
In my AndroidManifest.xml
        <service
            android:name=".notifications.MyFirebaseMessaging"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
        <service
            android:name=".notifications.MyFirebaseInstanceId"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>
and other dependencies, I am not including them here as the app is work fine in debug mode
Edited
I already have
 

You have not added your SHA-1 key for the release to your firebase console and hence not existing in your google-services.json.
If you're using Google play app-signing. Make sure the key being used by play store to sign your releases is also added in step 2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With