Tried calling FCM.getToken, but the FCM plugin is not installed. ionic 5

You need to post way more info. On which device are you testing on?

I am testing in my device phone with commande ionic cordova run android -l