新的 firebase 框架将不允许 google 地图用户授权显示
New firebase framework will not allow google map user authorization display
目前 firebase 不允许我的应用程序显示用户授权。 userAuthorization 将打开一秒钟然后消失。在日志中,它看起来像是在分析启用出现后消失了。
这是我当前的代码
import UIKit
import GoogleMaps
class practiceViewController: UIViewController,GMSMapViewDelegate,CLLocationManagerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
let locationManager = CLLocationManager()
locationManager.requestAlwaysAuthorization()
}
}
有没有办法关闭分析?
能否按照步骤开启调试模式并提供控制台日志?这是引自 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 种方法可以禁用分析。您可以在 Info.plist 上使用标志或在 website 上将其设置在 运行 时间。请让我知道哪种方式适合您。
- 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.
- 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)
- 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.
目前 firebase 不允许我的应用程序显示用户授权。 userAuthorization 将打开一秒钟然后消失。在日志中,它看起来像是在分析启用出现后消失了。
这是我当前的代码
import UIKit
import GoogleMaps
class practiceViewController: UIViewController,GMSMapViewDelegate,CLLocationManagerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
let locationManager = CLLocationManager()
locationManager.requestAlwaysAuthorization()
}
}
有没有办法关闭分析?
能否按照步骤开启调试模式并提供控制台日志?这是引自 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 种方法可以禁用分析。您可以在 Info.plist 上使用标志或在 website 上将其设置在 运行 时间。请让我知道哪种方式适合您。
- 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.
- 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)
- 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.