Completely disable Firebase/Analytics to stop console spam on app startup
To the best of my knowledge, these two lines:
[[FIRConfiguration sharedInstance] setLoggerLevel:FIRLoggerLevelMin];
[[FIRAnalyticsConfiguration sharedInstance] setAnalyticsCollectionEnabled:NO];
placed very early in the app delegate's didFinishLaunchingWithOptions:
will completely disable FireBase analytics, including stopping all the console output.
I've also since discovered that the Google/SignIn
cocoapod is deprecated - the recommended one to use is GoogleSignIn
(ie. no '/'). If you use GoogleSignIn
, then this doesn't have a dependency on Firebase Analytics, so the original problem goes away. Now I have Google Drive support in my app and don't have Firebase Analytics!
How to stop Firebase from logging status updates when app is launched
You can disable the debug logging with the flag -FIRDebugDisabled
.
You can add it to your scheme:
- Select Scheme toolbar
- Edit Scheme
- Select Run
- Click Arguments and add
-FIRDebugDisabled
How to disable/remove FirebaseAnalytics
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.
How to disable Crashlytics during development
Marc from Crashlytics here. Here's a couple of ways to disable Crashlytics while you are doing your debug builds!
Use a different android:versionString for debug and release builds and then disable crash reporting from the Crashlytics web dashboard for the debug version.
Wrap the call to Crashlytics.start() in an if statement that checks a debug flag. You could use either a custom flag or an approach like the ones proposed here: How to check if APK is signed or "debug build"?
Related Topics
Easiest Way of Getting Reverse Geocoded Current Location from iOS
Playing Video into Uitableview
Implementing Uitextfielddelegate with Swift
(iOS + Storekit) How to Detect When I'm in the Sandbox
Adding Older iOS Sdks to Xcode 4.1 in Lion
Intercept Request with Wkwebview
How to Handle Action Buttons in Push Notifications
Not Receiving Any Push Notification in Iphone
How to Have One Static Cell in a Dynamic Tableview
How to Use the Default iOS7 Uianimation Curve
Skmutablepayment Property: Applicationusername
Swift Calculate Md5 Checksum for Large Files
Beacon Ranging in Background on iOS
Best Way to Save and Retrieve Uicolors to Core Data
Uiimagejpegrepresentation Has Been Replaced by Instance Method Uiimage.Jpegdata(Compressionquality:)
Change the Color of a Link in an Nsmutableattributedstring