FCM Cordova plugin issue. plugin_not_installed

Viewed 216

I am struggling to get Firebase Cloud messaging working with ionic 5 This is the issue i am getting when running the code below.

Error code

this.fcm.getToken().then(token => {
  console.log('Regeistewring token')
  this.afs.doc(`users/${this.userUid}`).ref.update({ 'tokens.notifications': token 
});
  // backend.registerToken(token);
});

I am importing FCM as

private fcm: FCM

from

import { FCM } from '@ionic-native/fcm/ngx';

I followed the Ionic FCM documentation to install

0 Answers
Related