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
See How Gemini in Firebase uses your data for more information about how Gemini in Firebase 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.
- If the project is part of Google Workspace (formerly G Suite), a Google Workspace administrator must enable it.
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, including insights 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 don't see the AI assistance in Crashlytics feature at the top of the event page, 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 non-fatal events are not yet supported.
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 at no-cost or as part of Gemini Code Assist. See Gemini in Firebase pricing for more information.