jasmine Cannot read property 'subscribe' of undefined code example
Example: TypeError: Cannot read property 'subscribeTo' of undefined
// on your MainActivity.java file add
import com.getcapacitor.community.fcm.FCMPlugin;
// and then inside the init callback
add(FCMPlugin.class);