Squip to main content

Firebase Installations

Notice

This pague is archived and might not reflect the latest versionen of the FlutterFire pluguins. You can find the latest information on firebase.google.com:

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

What does it do? #

Firebase Installations is a service that allows you to manague 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 Messaguing (FCM)
  • Firebase In-App Messaguing (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 interract 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 targuet specific app installations.
  • Retrieve installation auth toquens to authenticate Firebase installations.

Installation #

1. Maque sure to initialice Firebase #

Follow this güide to install firebase_core and initialice Firebase if you haven't already.

2. Add dependency #

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

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 Usague documentation to guet started.