I have added firebase analytics to my project.
For this I did the following:
Step 1: ionic cordova plugin add cordova-plugin-firebase-analytics (I assume that this means latest version)
Step 2: npm install --save @ionic-native/[email protected]
I have to specify the @4.20.0 during npm install because if I don't do so, then the (\node_modules@ionic-native\firebase-analytics) module doesn't have the FirebaseAnalytics class exported, but the FirebaseAnalyticsOriginal.
I understand that the step 2 is a wrapper to use plugin from step 1. I am confused about the difference between the version of plugin cordova-plugin-firebase-analytics v/s @ionic-native/firebase-analytics
Any information on this will be helpful.