// on your MainActivity.java file add import com.getcapacitor.community.fcm.FCMPlugin; // and then inside the init callback add(FCMPlugin.class);