---
title: "Firebase Remote Config"
description: "Learn more about the Sentry Firebase Remote Config integration for the Flutter SDK."
url: https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config/
---

# Firebase Remote Config | Sentry for Flutter

The `sentry_firebase_remote_config` integration provides [Firebase Remote Config](https://firebase.google.com/docs/remote-config/get-started?platform=flutter) support for Sentry, providing insight into feature flag evaluations.

## [Behavior](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#behavior)

* Adding the `SentryFirebaseRemoteConfig` integration will automatically track feature flag evaluations.
* Only boolean values are supported.

## [Prerequisites](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#prerequisites)

1. [Sentry SDK](https://docs.sentry.io/platforms/dart.md#configure) version `9.0.0` or higher.
2. Firebase Remote Config is set up.

## [Install](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#install)

To use the `SentryFirebaseRemoteConfig` integration, add the `sentry_firebase_remote_config` dependency.

`pubspec.yaml`

```yml
dependencies:
  sentry: ^9.0.0
  sentry_firebase_remote_config: ^9.0.0
```

## [Configure](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#configure)

Add the `SentryFirebaseRemoteConfig` integration to the Sentry SDK initialization.

```dart
await SentryFlutter.init(
  (options) {
    options.addIntegration(
      SentryFirebaseRemoteConfigIntegration(
        firebaseRemoteConfig: firebaseRemoteConfig,
      ),
    );
  },
);
```

### [Remote Config Update](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#remote-config-update)

The integration will automatically call `await remoteConfig.activate();` when the config is updated. If you don't want this behavior, you can set `activateOnConfigUpdated` to `false`.

```dart
SentryFirebaseRemoteConfigIntegration(
  firebaseRemoteConfig: firebaseRemoteConfig,
  activateOnConfigUpdated: false,
),
```

## [Verify & View](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#verify--view)

### [1. Update Firebase Remote Config Value](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#1-update-firebase-remote-config-value)

Update a boolean [Firebase Remote Config](https://firebase.google.com/docs/remote-config/get-started?platform=flutter) value to true. Keep in mind that values will be evaluated as bool if their string values are `true`, `false`, `1`, or `0`. So numerical values of `1` or `0` will be evaluated as `true` or `false` boolean values respectively.

### [2. View the Recorded Feature Flag Evaluation on Sentry.io](https://docs.sentry.io/platforms/dart/guides/flutter/integrations/firebase-remote-config.md#2-view-the-recorded-feature-flag-evaluation-on-sentryio)

To view the recorded feature flag evaluation, log into [sentry.io](https://sentry.io) and open your project.

Flag evaluations will appear in the "Feature Flag" section of Issue Details page as a table, with "suspect" flag predictions highlighted in yellow.
