What's difference between Ionic native Firebase vs Firebase-Analytics?

我们两清 提交于 2020-01-06 08:43:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!