Bhavesh Butani Bhavesh Butani - 1 year ago 163
Android Question

FCM receive message Issue

I'm integrating FCM to my project. But I'm getting below error in Log while notification received. (Error text color is blue)

W/FirebaseMessaging: Received message with unknown type: text

My code is like this:

public void onMessageReceived(RemoteMessage remoteMessage) {
Log.d("Notification", "Success");

In this code, the first line is not executing and it is not debugging also.

Answer Source

Finally I got the solution

In php side I'm sending


That's why I got above error.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download