问题
What's difference between:
https://ionicframework.com/docs/native/firebase/
and
https://ionicframework.com/docs/native/firebase-analytics/
I already use "firebase" for push notifications, but I need register pageviews manually, I need use these two plugins?
回答1:
Ionic 'Native' Firebase and Ionic 'Native' Firebase Analytics are the Ionic wrappers that are "providing a common interface for all plugins and ensuring that native events trigger change detection in Angular". These wrappers can't work without the plugin.
On the other side we have the Cordova Plugins as you can see in the Ionic documentation for installing a plugin.
$ ionic cordova plugin add cordova-plugin-firebase (1)
$ npm install --save @ionic-native/firebase (2)
(1) - The Firebase Cordova Plugin that includes push notifications, event tracking, crash reporting, analytics and more.
(2) - The wrapper that offers you a 'gentle' interface to work with
So you can get everything you need with the Firebase plugin with OR without the Ionic Firebase wrapper.
来源:https://stackoverflow.com/questions/49495251/whats-difference-between-ionic-native-firebase-vs-firebase-analytics