【问题标题】:Integrate ionic3 app with firebase analytics ionic native plugin将 ionic3 应用程序与 firebase 分析离子原生插件集成
【发布时间】:2017-09-07 06:16:29
【问题描述】:

我已将 GoogleService-Info.plist 放在 app 文件夹的根目录(不是 plaforms/ios/),并且我在 xcode 中构建了该应用程序,它在以下文件中显示错误:

FirebaseAnalyticsPlugin.m:

[FIROptions defaultOptions].deepLinkURLScheme = [FIROptions defaultOptions].bundleID;

错误是:

property 'bundle id' not found on object of type 'FIRoptions'

有人知道如何解决这个问题吗?谢谢

【问题讨论】:

  • 您的 GoogleService-Info.plist 文件是否包含您应用的正确 bundle-id?选择应用程序的设置时,您可以在 firebase-console 中配置 bundle-id。
  • 是的,我在 firebase 控制台上配置了正确的 bundle-id
  • 你有没有尝试解决它?删除/读取 ios 平台?
  • @David 我已经尝试 rm/add ios 平台,但仍然有这个问题。这个 plist 文件放在cordova root app 文件夹中还是需要放在platforms/ios/ 中?现在很困惑,不知道为什么会出现这个错误。
  • 您使用的插件似乎会导致很多问题(可能是因为需要的 pod),请尝试使用这个:github.com/arnesson/cordova-plugin-firebase,分析对我来说就像使用这个一样魅力。跨度>

标签: angular typescript ionic-framework ionic3 firebase-analytics


【解决方案1】:

我强烈推荐使用这个firebase native plugin。它工作正常。

ionic cordova plugin add cordova-plugin-firebase
npm install --save @ionic-native/firebase

但如果您需要了解更多关于Firebase Analytics then see this great article的信息。

【讨论】:

  • 您分享的这篇文章链接使用的是@ionic-native/firebase-analytics 而不是@ionic-native/firebase。你用你分享的链接回答矛盾。
  • 是的,它应有尽有。请阅读文档:This plugin brings push notifications, analytics, event tracking, crash reporting and more from Google Firebase to your Cordova project! Android and iOS supported (including iOS 10).@ShaharyarKirmani
  • 哪个插件 firebase 或 firebase-analytics ?这是 2 个不同的插件。
  • 我已经提到了我使用过的插件。即Firebase@ShaharyarKirmani
猜你喜欢
  • 2020-03-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-06
  • 1970-01-01
  • 2018-07-11
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多