I have been trying to make an app which uses Firebase Push notification,But an getting this error in Myfirebasemessaginservie class which is "Method does not override method from super class" :
package com.flymit.firebasenotificationexam;
import com.google.firebase.messaging.FirebaseMessagingService;
public class MyFirebaseMessagingService extends FirebaseMessagingService{
private static final String Tag="MyFirebasemsgservice";
@Override
public void onMessageReceived(){
}
}
Help Please!
You forgot
message
parameter. Method declaration should look likeonMessageReceived(RemoteMessage message)
.