Configuration JSON
To configure Troubleshooting on your app, adapt the JSON below and add it to the TROUBLESHOOTING_CONFIGURATION parameter.
{ "default": { "allowNFI": [ "CRITICAL", "WARNING", "INFO", "MISSING_RESOURCES", "CUSTOM" ], "allowBreadcrumbs": [ "LAUNCH", "CONFIGURATION", "VIEW", "PROCESS", "CALL_API", "INFO", "EXCEPTION", "CUSTOM" ], "toolsDefault": [ "FIREBASE_CRASHLYTICS" ] }, "overrideImplementation": [ { "tool": "FIREBASE_CRASHLYTICS", "allowNFI": [ "CRITICAL", "WARNING", "CUSTOM" ], "allowBreadcrumbs": [ "LAUNCH", "PROCESS", "CALL_API", "CUSTOM" ] } ] }
The JSON above consists of two sections: default and overrideImplementation. The default section contains every type of non-fatal issues and breadcrumbs captured by default by Troubleshooting. The overrideImplementation section serves as a whitelist that overrides the default list, in case you need to visualize less information on your report.
Note
In the example above, Crashlytics only captures information about CRITICAL, WARNING and CUSTOM non-fatal issues, and LAUNCH, PROCESS, CALL_API and CUSTOM breadcrumbs. If you want to capture all the default NFIs and breadcrumbs, delete the overrideImplementation section from the code.