问题描述
有什么区别:
和
我已经使用firebase进行推送通知,但我需要手动注册浏览量,我需要使用这两个插件吗?
I already use "firebase" for push notifications, but I need register pageviews manually, I need use these two plugins?
推荐答案
离子'原生'Firebase 和离子'原生'Firebase Analytics 是Ionic 包装 为所有插件提供通用接口,并确保本机事件触发Angular中的更改检测。如果没有插件,这些包装器就无法工作。
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.
另一方面,我们有了Cordova插件,你可以在Ionic文档中看到安装插件。
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) - Firebase Cordova插件,包括推送通知,事件跟踪,崩溃报告,分析等。
(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
所以你可以使用带有OR的Firebase插件获得所需的一切,而不需要Ionic Firebase包装。
So you can get everything you need with the Firebase plugin with OR without the Ionic Firebase wrapper.
这篇关于Ionic原生Firebase与Firebase-Analytics有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!