nahung89 nahung89 - 1 year ago 1176
iOS Question

How to disable/remove FireBaseAnalytic

I update 'Google/Analytics' from CocoaPod and get FirebaseAnalytics.

After that, each time I run project, the FireBaseAnalytics turns out many error loggings.

Currently I don't use this library and want to remove it. Unfortunately I can't find any way to disable / remove it out of Pod.

Here is the Podfile configuration

target 'myApp' do
pod 'Google/Analytics'

Console log:

<FIRAnalytics/DEBUG> Debug mode is on
<FIRAnalytics/INFO> Firebase Analytics v.3200000 started
<FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see '')
<FIRAnalytics/DEBUG> Debug logging enabled
<FIRAnalytics/DEBUG> Firebase Analytics is monitoring the network status
<FIRAnalytics/DEBUG> Uploading data. Host:
<FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
<FIRAnalytics/INFO> Firebase Analytics disabled
<FIRAnalytics/DEBUG> Network status has changed. code, status: 2, Connected
<FIRAnalytics/DEBUG> Network status has changed. code, status: 2, Connected
<FIRAnalytics/DEBUG> Received SSL challenge for host. Host:
<FIRAnalytics/DEBUG> Cancelling authentication challenge for host. Host:
<FIRAnalytics/ERROR> Encounter network error. Error: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=}

I also try to add FirebaseAppDelegateProxyEnabled = false in Info.plist but it doesn't work either.

enter image description here

Answer Source

To disable the collection of data by Firebase Analytics in your app, see the instructions here.

In summary, to disable temporarily, set FIREBASE_ANALYTICS_COLLECTION_ENABLED to NO in the GoogleServices-Info.plist file. To disable permanently, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES in the same plist file.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download