Google Firebase - how to delete Crash reports?

你离开我真会死。 提交于 2019-12-03 12:27:37

问题


Have I finally gone blind or is there not an obvious way to delete Firebase Crash reports through the Google Firebase web console? My Android app is successfully logging reports but now I have a flood of "development crashes" that are eating up a lot of my view in the console. It makes it very difficult to find actual beta user crashes (especially since I also can't seem to filter the crashes by date/time). Any help is much appreciated.


回答1:


The best thing you can do for the long term is to create two different instances of the app, one for debug/dev and another for release, and make sure they have different package names. This should allow you to view them each independently in the console. You can configure this pretty easily in your build.gradle.

This topic was also discussed in more detail on our firebase-talk group, but from the perspective of Firebase Analytics. Be sure to click through to get more details on how the gradle build works.

As far as actually deleting the issues that come up, there's not currently a way to do that, but we are looking into that for a future release. We definitely hear everyone's feedback on that.




回答2:


I know this is old, but now there is a way to disable Crashlytics when in debug mode.

In your app level build.gradle:

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
//...

    buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
            manifestPlaceholders = [crashlyticsEnabled: true]
        }
        debug {
            manifestPlaceholders = [crashlyticsEnabled: false]
        }
    }
}

//...

And in your AndroidManifest.xml inside application tag:

<meta-data
    android:name="firebase_crashlytics_collection_enabled"
    android:value="${crashlyticsEnabled}" />



回答3:


As Doug answered, it isn't possible at the moment.

My method is to use the filter - when in dev/debug, you roll the version forward one minor version, and when you release you, use another version.

This way you can restrict errors that you're dealing with to your current version, and not changing the package names, or having two code branches open.



来源:https://stackoverflow.com/questions/37493079/google-firebase-how-to-delete-crash-reports

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!