Skip to main content

Firebase Installations

Notice

This page is archived and might not reflect the latest version of the FlutterFire plugins. You can find the latest information on firebase.google.com:

https://firebase.google.com/docs/projects/manage-installations#flutter

What does it do?#

Firebase Installations is a service that allows you to manage the installation of your app on a user's device. The Firebase installations service (FIS) provides a Firebase installation ID (FID) for each installed instance of a Firebase app.

Internally, the installation ID is used by the following Firebase Services:

  • Firebase Cloud Messaging (FCM)
  • Firebase In-App Messaging (FIAM)
  • Firebase Performance Monitoring
  • Firebase Predictions
  • Google Analytics for Firebase
  • Firebase Remote Config
  • Firebase ML

Typically, Firebase services use the Firebase installations service without requiring developers to interact directly with the FIS API. However, there are cases where app developers might want to directly call the FIS API, such as:

  • Delete a Firebase installation and data tied to the installation.
  • Retrieve identifiers (Firebase installation IDs) in order to target specific app installations.
  • Retrieve installation auth tokens to authenticate Firebase installations.

Installation#

1. Make sure to initialize Firebase#

Follow this guide to install firebase_core and initialize Firebase if you haven't already.

2. Add dependency#

On the root of your Flutter project, run the following command to install the plugin:

flutter pub add firebase_app_installations

3. Rebuild your app#

Once complete, rebuild your Flutter application:

flutter run

Next Steps#

Once installed, you're ready to start using Firebase Installations in your Flutter Project. View the Usage documentation to get started.