gpt4 book ai didi

ios - 新的firebase框架将不允许谷歌地图用户授权显示

转载 作者:行者123 更新时间:2023-11-30 13:24:34 27 4
gpt4 key购买 nike

目前,firebase 不允许我的应用显示用户授权。 userAuthorization 将打开一秒钟,然后消失。在日志中,它看起来在分析启用出现后消失了。

这是我当前的代码

import UIKit
import GoogleMaps

class practiceViewController: UIViewController,GMSMapViewDelegate,CLLocationManagerDelegate {
override func viewDidLoad() {
super.viewDidLoad()

let locationManager = CLLocationManager()
locationManager.requestAlwaysAuthorization()
}
}

有办法关闭分析吗?

最佳答案

您可以按照步骤打开 Debug模式并提供控制台日志吗?这是 website 的引用:

To view this event in the Xcode debug console, enable Analytics debugging:

In Xcode, select Product > Scheme > Edit scheme... Select Run from the left menu. Select the Arguments tab. In the Arguments Passed On Launch section, add -FIRAnalyticsDebugEnabled.

有 3 种方法可以禁用 Analytics。您可以在 Info.plist 上使用标志,或在运行时在 website 上设置它。 。请让我知道哪种方式适合您。

  1. If you wish to temporarily disable Analytics collection, such as to get end-user consent before collecting data, you can set the value of FIREBASE_ANALYTICS_ENABLED to NO in your app's Info.plist file.
  2. If you need to suspend collection again for any reason, you can call setAnalyticsCollectionEnabled:FALSE and collection is suspended until you re-enable it. (Turn off at run time)
  3. If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES in your app's Info.plist file.

关于ios - 新的firebase框架将不允许谷歌地图用户授权显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37378606/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com