Ionic 原生 Firebase 与 Firebase-Analytics 之间有什么区别?

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

有什么区别:

https://ionicframework.com/docs/native/firebase/

https://ionicframework.com/docs/native/firebase-analytics/

我已经使用 "firebase" 推送通知,但我需要手动注册综合浏览量,我需要使用这两个插件吗?

Ionic 'Native' FirebaseIonic 'Native' Firebase Analytics 是 Ionic 包装器 即 "providing a common interface for all plugins and ensuring that native events trigger change detection in Angular"。如果没有插件,这些包装器将无法工作。

另一方面,我们有 Cordova 插件,您可以在用于安装插件的 Ionic 文档中看到。

$ ionic cordova plugin add cordova-plugin-firebase (1)
$ npm install --save @ionic-native/firebase (2)

(1) - Firebase Cordova 插件,包括推送通知、事件跟踪、崩溃报告、分析 等。
(2) - 为您提供 'gentle' 接口的包装器

因此,您可以使用带有 OR 的 Firebase 插件获得所需的一切,而无需 Ionic Firebase 包装器。