ios - 我应该在哪里添加 GOOGLE_ANALYTICS_REGISTRATION_WITH_AD_NETWORK_ENABLED?

标签 ios firebase firebase-analytics

我正在阅读 Firebase release notes似乎在 6.29.0 版本之后,它们已经适应了新的 iOS 14 跟踪要求,并且它们提供了一种不自动初始化的方法 SKAdNetwork :

[SKAdNetwork registerAppForAdNetworkAttribution] is now automatically called on first open by default. To opt-out of this default behavior, add the key GOOGLE_ANALYTICS_REGISTRATION_WITH_AD_NETWORK_ENABLED with Boolean value NO to your app’s Info.plist file.


我要触发SKAdNetwork我自己,但我不清楚是否通过应用程序的 Info.plist他们的意思是:
  • 选项 1: Info.plist当您执行 Xcode、File、New、Project(包含 URLTypes、App Schemes 等)时创建的
  • 选项 2: GoogleService-Info.plist

  • 我认为它们的意思是选项 1,但我不完全确定,因为 Firebase 中的所有内容通常都由选项 2 配置。

    最佳答案

    这是选项1。GoogleService-Info.plist应该是未使用的,未从 Firebase 控制台下载中修改,并且是后端配置信息。
    该应用程序的 Info.plist用于特定于应用程序的配置。

    关于ios - 我应该在哪里添加 GOOGLE_ANALYTICS_REGISTRATION_WITH_AD_NETWORK_ENABLED?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63831010/

    相关文章:

    ios - Cloud Functions 和 DeviceCheck,没有得到 Apple 的回应

    android - Phonegap 使用 cordova-plugin-sim 获取 sim 信息

    ios 所有 UIButton 的全局触觉反馈

    ios - iPhone 应用程序 : avoiding white screen after splash screen. 让闪屏停留,在 UIWebview 加载后隐藏它?闪屏没有正确隐藏

    java - 如何仅从 Firestore 获取最新更新的数据?

    google-analytics - Firebase+GTM SDK - 在不指定 screenName 字段的情况下将事件记录到 Google Analytics

    ios - 在 Objective-C 中存储到 Keychain 的值无法在 Swift 中检索?

    android - 防止 Firebase 将方法名称作为 Firebase 中的变量

    仪表板上的 Firebase Analytics 自定义事件参数

    android - 移除 Install Receiver 或移除 Firebase Analytics