ios - 适用于 iOS Today 扩展的 Firebase 分析(小部件扩展)

标签 ios firebase firebase-analytics today-extension

我尝试在 Today 扩展中添加 Firebase 分析。 所以我输入配置代码

if (![FIRApp defaultApp]) {     
  [FIRApp configure];
}

在今天扩展的 viewDidLoad 中。

在 Xcode 的“产品”>“方案”>“编辑方案”>“运行”>“参数”选项卡中,我添加了“-FIRAnalyticsDebugEnabled”,因为我想在 Firebase 控制台的 DebugView 页面中显示记录的事件。但是,任何事件都没有打印在页面中。

添加到应用程序(不是今天的扩展)中的日志会在 DebugView 中实时检查。我应该怎么做才能在 firebase DebugView 中实时显示今天扩展的日志?

enter image description here

最佳答案

根据我的经验,您不能在扩展程序上使用 app 参数。我可以在扩展中添加断点,但我可以看到该标志对扩展没有任何影响。因此,扩展目前无法在 Debug模式下发送数据。

关于ios - 适用于 iOS Today 扩展的 Firebase 分析(小部件扩展),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42547173/

相关文章:

typescript - 从 QuerySnapshot 获取数据

firebase-analytics - Firebase Analytics事件参数计数限制

iOS 代码 : Fails on other machines, 但不是我的 [NSFileManager copyItemAtPath:toPath:error:]: source path is nil'

ios - 如何从 Personal Apple Developer 转变为 Enterprise?

javascript - 在 Reactjs 中的 Firebase 中插入数据

java - Firebase 身份验证 : Get users by email or phone number

firebase-authentication - Firebase 分析 : is it using IDFA on iOS?

Firebase 分析 : registering custom parameters in the console

ios - LibGDX 应用因不包含 NSCalendarsUsageDescription 而被 AppStore 拒绝

android - 从手机打开此处 map 网址