简体   繁体   English

Firebase-崩溃报告的后备

[英]Firebase - Fallback to Crash Reporting

When I get into Crash Report on Firebase, I see the message: Someone on your team has set up Crashlytics as your crash reporter for XXXXX How can I fall back to Crash Report? 当我进入Firebase上的崩溃报告时,我看到以下消息:团队中的某人已将Crashlytics设置为XXXXX的崩溃报告者,我该如何退回到崩溃报告中? I`m not ready to move on to crashlytics yet. 我还没有准备好转入crashlytics。

Great question Rafael. 很好的问题,拉斐尔。 If you want to switch back, simply remove the Crashlytics integration from your app and reintegrate crash reporting. 如果您要切换回去,只需从您的应用程序中删除Crashlytics集成并重新集成崩溃报告即可。 Let me know how it goes and remember to talk to your team about why this happened in the first place. 让我知道进展情况,并记得与您的团队讨论为什么会首先发生这种情况。 Thanks again! 再次感谢!

I had the same issue with falling back to the Firebase Crash reporting after I tried setting up the Crashalytics in my app project. 在尝试在我的应用程序项目中设置Crashalytics之后,我又回到了Firebase崩溃报告这一问题。 Since there were a lot of issues with the setting it up correctly in an existing project and had very limited time, I had to revert the changes in my project configurations back. 由于在现有项目中正确设置它存在很多问题,并且时间非常有限,因此我不得不将项目配置中的更改还原回去。 However, after this change I was not able to reach the Crash reporting in the Firebase console anymore and just received the info : 但是,进行此更改后,我再也无法在Firebase控制台中访问“崩溃”报告,而仅收到以下信息:

Someone on your team has set up Crashlytics as your crash reporter 您团队中的某人已将Crashlytics设置为您的崩溃报告人

Looks like a bug, console does not get updated after the fall back. 看起来像个错误,回退后控制台不会更新。 My personal believe is that developers are forced to move to Crashalytics... 我个人认为,开发人员被迫转向Crashalytics ...

Note: Crashlytics will soon become the primary crash reporter for Firebase. 注意:Crashlytics很快将成为Firebase的主要崩溃报告者。 If you aren't already using Crash Reporting to report crashes and non-fatal errors in your app, we recommend using Crashlytics. 如果您尚未使用崩溃报告来报告应用程序中的崩溃和非致命错误,建议您使用Crashlytics。

I just gave it a last try today. 我今天才尝试了一下。 Reading carefully and slowly the Firebase documentation I tried this as last chance trial: 仔细且缓慢地阅读Firebase文档,我尝试将其作为最后一次尝试:

To let you users opt-in or opt-out of using Firebase Crash Reporting, you might want to configure your app so that you can enable and disable Crash Reporting. 为了让用户选择加入或退出使用Firebase崩溃报告,您可能需要配置应用程序,以便可以启用和禁用崩溃报告。 You might also find this capability to be useful during app development and testing. 您可能还会发现此功能在应用程序开发和测试期间很有用。

  1. Remove any added dependency you did for Crashalitycs (both app and project - see Get started with Firebase Crashlytics ) 删除您对Crashalitycs所做的所有添加的依赖项 (应用程序和项目都包括在内 -请参阅Firebase Crashlytics入门
  2. Add back the dependency for Crash reporting: IOS or Android 重新添加崩溃报告的依存关系: IOSAndroid
  3. Follow the steps: 按照步骤:

iOS: You can add a key to the Info.plist for your iOS app to disable Crash Reporting at build time. iOS:您可以在iOS应用的Info.plist中添加一个密钥,以在构建时禁用崩溃报告。 Add the key firebase_crash_collection_enabled , and set the value to false . 添加键firebase_crash_collection_enabled ,并将其值设置为false

To enable Crash Reporting call: 要启用崩溃报告呼叫:

Crash.sharedInstance().crashCollectionEnabled = true

Android: You can add a meta-data entry to the AndroidManifest.xml for your app to disable Crash Reporting at build time. Android:您可以将元数据条目添加到AndroidManifest.xml中,以使您的应用在构建时禁用崩溃报告。

<meta-data android:name="firebase_crash_collection_enabled" android:value="false" />

To enable Crash Reporting call in your app onCreate() method: 要在您的应用程序的onCreate()方法中启用崩溃报告调用:

FirebaseCrash.setCrashCollectionEnabled(true);

I could open Crash Reporting for the app in the console from the drop down menu on top of the console... Let me see if this will work and I will see the test crashes in the console later. 我可以从控制台顶部的下拉菜单中在控制台中为该应用程序打开“崩溃报告” ...让我看看这是否行得通,稍后我会在控制台中看到测试崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM