You can download the Firebase config file or Firebase config object for each of your project's apps from the Firebase console's Project settings page. You need this config file or object to configure your app to use Firebase.
You may need to access your config file or object after the initial registering of the app with Firebase if you're setting up a new environment or you're not the member who originally registered the app.
Learn more about the Firebase config file and object in Understand Firebase Projects.
Get config file for your iOS app
- Go to your Project settings in the Firebase console.
- In the Your apps card, select the bundle ID of the app for which you need a config file.
- Click GoogleService-Info.plist.
- Move your config file into the root of your Xcode project. If prompted, select to add the config file to all targets.
Make sure that you only have this most recent downloaded config file in your Xcode project.
Note that you can also obtain your iOS app's config file via REST API (projects.iosApps.getConfig).
Get config file for your Android app
- Go to your Project settings in the Firebase console.
- In the Your apps card, select the package name of the app for which you need a config file.
- Click google-services.json.
- Move your config file into the module (app-level) directory of your app.
Make sure that you only have this most recent downloaded config file in your app.
Note that you can also obtain your Android app's config file via REST API (projects.androidApps.getConfig).
Get config object for your web app
- Go to your Project settings in the Firebase console.
- In the Your apps card, select the nickname of the app for which you need a config object.
- Select Config from the Firebase SDK snippet pane.
- Copy the config object snippet, then add it to your app's HTML.
Note that you can also obtain your web app's config file via REST API (projects.webApps.getConfig).