Use AI assistance in Crashlytics provided by Gemini in Firebase to help speed up the time it takes for you to understand why a crash happened and what to do about it. AI assistance in Crashlytics identifies root causes, delivers actionable insights and tailored solutions, and recommends best practices going forward.
AI assistance in Crashlytics can provide you with the following insights:
- Summary/Cause: A concise but information-rich explanation of what happened to the user and what caused the issue.
- Debugging options: Gemini will offer a few potential ways to either reproduce the error or will provide next steps to further debug the issue to identify a root cause. Gemini can provide recommended commands to try or code to use (with caution).
- Actionable next steps: While Gemini won't initially have all of the context about your issue, AI assistance in Crashlytics will use Firebase's wealth of knowledge on mobile app development to recommend a few potential resolution paths whenever possible and provide you with the ability to add additional context and source code to get more in-depth insights.
- Best Practices: Part of the triage process is, ideally, future-proofing your app so these types of issues don't recur. Gemini references thousands of pages of Firebase documentation (and more) to provide you with possible approaches to resolve the issue.
How AI assistance in Crashlytics uses your data
AI assistance in Crashlytics doesn't use its responses, your crashes, or any additional code, context, or feedback you provide as data to train its models. For more information, see How Gemini in Google Cloud uses your data.
Required permissions
To enable and use features of Gemini in Firebase requires certain IAM roles and permissions.
- Project members with the owner or editor IAM role can enable Gemini in Firebase and use its features.
- Project viewers cannot enable Gemini in Firebase, but they can use its features, including Gemini in Firebase chat, help, and AI assistance in Crashlytics if they are assigned the Gemini for Google Cloud User role.
Here's how to assign the Gemini for Google Cloud User role to a project member. Note that only project owners can edit IAM roles.
- From the Firebase console, select Project settings, then select Users and permissions.
- Find the row for the applicable project member.
- Click More options, then select Edit access.
- Expand Role(s), select Gemini for Google Cloud User, then click Done.
- Click Update roles to save the change. It may take a minute or two for the new role to apply to your user.
Set up AI assistance in Crashlytics
To set up AI assistance in Crashlytics, enable Gemini in Firebase as described in Set up Gemini in Firebase, then proceed to Generate insights.
Generate insights
To use AI assistance in Crashlytics to generate insights about your crashes:
Open the Crashlytics dashboard in your project and select your app.
Locate and select a crash you want to investigate. The Crashlytics event page appears, providing a Generate AI insights button.
If you don't see a Generate AI insights button, verify that Gemini in Firebase has been enabled (for setup instructions, see Set up Gemini in Firebase). Also, make sure that you're viewing an Apple or Android event. Flutter, Unity, and Android NDK events and non-fatal events are not yet supported. And finally, ensure that the Insights section is expanded in the Crashlytics event page.
Click the Generate AI insights button.
Insights appear, with one or more of the following:
- an analysis of the crash with a possible cause
- debugging instructions
- actionable next steps
- best practices
If you want to provide code and context to obtain deeper insights, click Get started in the Want deeper insights? box.
Paste the code that Gemini in Firebase requests into the code field.
If you have more context or additional details to share that might help improve AI insights, add it to the Share any context or relevant details field.
Click Regenerate AI insights.
Gemini in Firebase generates updated insights based on your provided code and context.
Troubleshoot AI assistance in Crashlytics
Refer to Troubleshoot Gemini in Firebase.
Quotas and pricing
This section describes the quotas and pricing structure for AI assistance in Crashlytics.
Quotas and limits
AI assistance in Crashlytics quotas are included as part of the Gemini for Google Cloud API quotas that Gemini in Firebase uses.
You can view your current quotas on the Quotas page for the Gemini for Google Cloud API:
- From the Google Cloud console, select Enabled APIs & services.
- Search for, then click Gemini for Google Cloud API.
- Click Quotas & system limits.
Gemini for Google Cloud API quotas appear. AI assistance in Crashlytics uses the "Chat API requests per day per user" quota.
To request a quota increase:
- Select the quota you want to increase, and click Edit request.
- Update the New value text field with the quota you'd like to request, then click Submit. The Google Cloud team will evaluate your request and respond by email.
Pricing
AI assistance in Crashlytics is available as part of Gemini in Firebase, which is included in Gemini Code Assist. Gemini Code Assist is available to try at no cost until November 8, 2024, limited to one user per billing account. See Gemini in Firebase pricing for more information.