Firebase FAQ

The page is a collection of FAQs and troubleshooting help for Firebase in general, as well as for specific products.

Do you have other challenges or can't find your issue described on this page?



Platforms and frameworks

Visit the platform-specific troubleshooting & FAQ pages for helpful tips and answers for more FAQ.



Firebase projects and Firebase apps

Permissions and access to Firebase projects

API keys for Firebase

Here are the most important things to learn about API keys for Firebase services:
  • Public by design: API keys for Firebase services only identify your Firebase project and app to those services. Authorization is handled through Google Cloud IAM permissions, Firebase Security Rules, and Firebase App Check.
  • Apply restrictions: All Firebase-provisioned API keys are automatically restricted to Firebase-related APIs. For all API keys in your project, it's critical that you apply appropriate API restrictions to prevent unauthorized use of your project's quota for APIs.
  • Use only for Firebase services: Use your Firebase-provisioned API keys only for Firebase-related APIs. If your app uses any other APIs (for example, the Places API for Maps or the Gemini Developer API), use a separate API key and restrict it to the applicable API. In particular, never include the Gemini Developer API in the allowlist for a publicly accessible API key or a key used for other services.
  • Security Rules and App Check are critical: Security of your Realtime Database, Cloud Firestore, and Cloud Storage data is enforced using Firebase Security Rules, and protection of covered APIs is by Firebase App Check — not by keeping your Firebase API key secret.

If your app's setup follows the above guidelines, then API keys restricted to Firebase services do not need to be treated as secrets, and it's safe to include them in your code or configuration files.

If you've received an email from Google Cloud about a "publicly accessible Google API key for your Google Cloud project" and the API key listed in the email is your Firebase API key, then make sure that the API key meets the following requirements to be safe to include in your code or configuration files. You can verify the following in the APIs & Services > Credentials page of the Google Cloud console.

  • It's the API key that you use for your Firebase app and only for Firebase services. These keys are usually called Browser key (auto created by Firebase) or Android key (auto created by Firebase) or iOS key (auto created by Firebase).
  • It has all the required Firebase-related APIs included in the key's "API restrictions" allowlist.
  • It does not have any other APIs in its "API restrictions" allowlist. In particular, the list should not have Generative Language API.

Also, make sure that you're using Firebase Security Rules and App Check as recommended for the Firebase products that you use.

You can learn details about API keys for Firebase and find a list of FAQs in Learn about using and managing API keys for Firebase



Firebase console

The Firebase console provides a sample app experience so that you have a real working app to explore and experiment with Firebase and other Google services (like the Gemini API).

Automatic Firebase setup and deployment of the sample app

When you go through the sample app experience in the Firebase console, we automatically do the following for you:

  • Create a new Firebase project for your sample app
  • Register a Firebase Web App in the new Firebase project
  • Enable services and APIs that are used by the sample app (for example, Firebase Authentication, Cloud Firestore, etc.)
  • Provision any required resources (for example, database instances and security rules)
  • Set up Firebase AI Logic to use the Gemini Developer API
  • Deploy the sample app to a temporary preview URL using Firebase Hosting (by default, this URL expires in 7 days)
Explore the sample app's codebase
  • Option 1: Open a personalized version of the sample app's codebase in Firebase Studio

    The sample app experience provides a pathway to open a personalized version of the sample app's codebase in Firebase Studio (Google's browser-based workspace for full-stack app development). After your project and app are set up (see above), you can find links to Firebase Studio in banners in the Firebase console and at the top of the deployed app.

    When you open your sample app in Firebase Studio, we automatically do the following for you:

    • Use the same Firebase project, Firebase Web App, and resources created in the initial setup (see above)
    • Insert your sample app's Firebase configuration into the codebase (usually into src/bootstrap.js)

    Within Firebase Studio, you can explore the codebase to understand how you can interact with various Firebase and Google services.

  • Option 2: View the public, non-personalized version of the sample app's codebase in GitHub

    Alternatively, you can view the public, non-personalized version of the sample app's codebase in GitHub.



Firebase Local Emulator Suite

Visit the Local Emulator Suite FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Pricing

For pricing FAQs specific to a product, see the product's section on this page or within its dedicated product documentation.

Firebase paid services can be used under the Google Cloud Free Trial. New Google Cloud and Firebase users can take advantage of a 90-day trial period that includes $300 in free Cloud Billing credits to explore and evaluate Google Cloud and Firebase products and services.

During the Google Cloud Free Trial period, you'll be provided a Free Trial Cloud Billing account. Any Firebase project that's linked to that billing account will be on the pay-as-you-go Blaze pricing plan during the Free Trial period.

Don't worry, linking a Firebase project to this Free Trial Cloud Billing account does not enable us to charge you for usage beyond these credits. You are not charged for usage beyond these credits unless you explicitly enable billing by upgrading your Free Trial Cloud Billing account to a paid account. You can upgrade to a paid account at any time during the trial. After you've upgraded to a paid account, you can still use any remaining credits (within the 90-day period).

Once the free trial expires and if you have not upgraded the Free Trial Cloud Billing account to a paid account, then your linked Firebase project is automatically downgraded to the Spark pricing plan. Note that you can upgrade to the Blaze pricing plan again at any time.

Learn more about the Google Cloud Free Trial.



Privacy



A/B Testing

Visit the A/B Testing FAQ and troubleshooting page for helpful tips and answers to more FAQs.



AdMob

Visit the AdMob FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Analytics

Visit the Analytics FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Authentication

Visit the Authentication FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Cloud Functions

Visit the Cloud Functions for Firebase FAQ and Troubleshooting page for helpful tips and answers to more FAQs.



Cloud Messaging

Visit the FCM FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Cloud Storage for Firebase

Visit the Cloud Storage for Firebase troubleshooting & FAQ page for helpful tips and answers to more FAQs.



Crashlytics

Visit the Crashlytics FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Visit the Dynamic Links deprecation FAQ page for helpful tips and answers to more FAQs.



Hosting

Visit the Firebase Hosting FAQ and Troubleshooting page for helpful tips and answers to more FAQs.



Performance Monitoring

Visit the Performance Monitoring FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Realtime Database

Visit the Realtime Database FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Remote Config

Visit the Remote Config FAQ and troubleshooting page for helpful tips and answers to more FAQs.



Test Lab

Visit the Test Lab troubleshooting page for helpful tips and answers to more FAQs.



Firebase App Indexing

Firebase App Indexing is no longer the recommended way of indexing content for display as suggested results in Google Search App. This FAQ points to other useful developer products.

Apple platforms

Universal Links are the recommended way of linking users directly from search results, websites and other apps to specific content within your app.

Android

Android App Links are the recommended way of linking users directly from search results, websites and other apps to specific content within your app.

You might also be interested in the following options:

  • App Search: High-performance on-device search

  • App Actions: Let users launch and control Android apps with their voice, using Google Assistant.

  • Android Shortcuts: Provide users with quick methods to perform an action or access content in your app.



Firebase User Segmentation Storage