Cordova plugin for Firebase Messaging
import { FirebaseMessaging } from '@ionic-native/firebase-messaging';
constructor(private firebaseMessaging: FirebaseMessaging) { }
...
this.firebaseMessaging.logEvent('page_view', {page: "dashboard"})
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));