Ionic原生Firebase与Firebase-Analytics有什么区别? [英] What's difference between Ionic native Firebase vs Firebase-Analytics?

查看:523
本文介绍了Ionic原生Firebase与Firebase-Analytics有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么区别:

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

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

我已经使用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有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆