My android app is not receiving any firebase notification. When I send a message from the firebase console it is showing that the process is completed and when the row is expanded it shows 0 message send, screenshot below

Expiry of the message is set to 1 minute.
I've added the FirebaseMessagingService , FirebaseInstanceIdService and added the services in the manifest like this
<service android:name=".service.TjssFireBaseInstanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service
android:name=".service.TjssFireBaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
I've tried adding
android:enabled="true"
android:exported="true"
This is the onCreate method of application class
@Override
public void onCreate() {
super.onCreate();
mGlide = Glide.with(this);
String token = FirebaseInstanceId.getInstance().getToken();
if (token != null)
M.log("Firebase Token", token);
}
and I've a valid token in the logcat output
I did everything they said the documentation, but it is not working. Did I miss something important?
In your onCreate of Application add this
FirebaseApp.initializeApp(this);
this meaning context here
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