After setting up the Firebase integration with Slack, your project can post to your Slack workspace in response to events reported by Crashlytics, like new, regressed, or increasing-velocity issues.
Set up a Slack webhook
Before you set up the integration in Firebase, you need to add an incoming webhook in Slack to handle communications from Firebase.
To learn how to do this, read the Slack documentation about Sending messages using Incoming Webhooks.
Set up the Slack integration in the Firebase console
After you've set up the appropriate webhook, you're ready to set up the integration in Firebase:
- Sign in to the Firebase console, then select your project.
- Click
, then select Project Settings. Select the Integrations tab.
- On the Slack integration card, click Install.
- Set up the integration by setting values in the following fields:
- Webhook URL: Paste the webhook URL from your Slack settings page.
- Default channel: Enter a channel name. You can override this default later on a per-app or per-alert basis.
- Name of posting user: Enter a name to send the messages under.
- Click Verify & save.
After verifying and saving the Slack integration, you should see a confirmation message in the default channel you selected.
Configure alert settings
You can configure alerts by app and event type. For example, you can turn off alerts in your testing app or route high-priority alerts in your production app to an #urgent
channel.
Event types
The Firebase integration with Slack allows you to send alerts in response to three event types:
- New issues: triggered when your app experiences a crash that Crashlytics hasn't seen before.
- New non-fatal issues: triggered when your app experiences a non-fatal issue Crashlytics hasn't seen before.
- Regressed issues: triggered when your app experiences a crash that you'd previously marked closed.
- Increasing-velocity issues: triggered when a single crash or ANR type impacts a percentage of users in a 30-minute period for a given app version.
Configure settings for each app
Here's how to configure alerts for each app in your Firebase project:
- Sign in to the Firebase console, then select your project.
- Click
, then select Project Settings. Select the Alerts tab.
- Go to the Crashlytics alerts card. Select the app you want to configure from the dropdown menu.
- Select the Slack channel where you want to send alerts for this app.
- For each type of alert, select from the dropdown whether you want to send that type of alert to Slack.
- Repeat these steps for each app that you want to configure.
That's it! Firebase will send alerts to your specified Slack channels if your apps have new, regressed, or increasing-velocity issues.