Set Up Firebase
The Firebase setup is the first step to use backend features like authentication, database, and file storage in your app. The integrated assistant guides you step by step through the setup.
Overview
Section titled “Overview”The Firebase setup consists of three main areas:
Choose Setup Mode
Section titled “Choose Setup Mode”When setting up Firebase modules, you can choose between two modes:
Requirement: A Service Account must be set up.
Advantages:
- Setup in seconds
- No manual copying and pasting
- All rules and indexes are automatically deployed
- Less error-prone
How it works:
- Choose “Automatic” during module setup
- The app automatically connects to Firebase
- All settings are applied
- Done!
No requirements - always works.
How it works:
- The assistant shows you step by step what to do
- You copy the rules from the app and paste them into Firebase
- More control, but more effort
Choose this mode when:
- You don’t want to set up a Service Account
- You want full control over every step
- The automatic mode fails
Prerequisites
Section titled “Prerequisites”Before you start the Firebase setup, you need:
- A Google Account (e.g., Gmail address)
- Access to the Firebase Console at console.firebase.google.com
- The Bundle ID of your iOS app (e.g.,
com.yourcompany.yourapp) - The Package Name of your Android app (e.g.,
com.yourcompany.yourapp)
Start Setup
Section titled “Start Setup”- Open Edit Mode in your app
- Go to Module & Features
- Tap on Firebase and then on Set Up
- The guided assistant opens
The Setup Assistant
Section titled “The Setup Assistant”The Firebase setup assistant is an interactive wizard that opens the Firebase Console directly in the app and guides you through each step.
How the Assistant Works
Section titled “How the Assistant Works”| Area | Description |
|---|---|
| WebView | The Firebase Console is displayed directly in the app |
| Progress Indicator | Dots at the top show which step you’re at |
| Instructions Area | Instructions for the current step appear at the bottom |
| Navigation | Navigate through the steps with “Next” and “Back” |
What Will Be Set Up?
Section titled “What Will Be Set Up?”Firebase Project
Section titled “Firebase Project”A Firebase project is the container for all Firebase services of your app. It contains:
- Project ID: Unique identifier for your project
- Project Name: Display name in the Firebase Console
- Resources: Servers and storage for your app
App Registrations
Section titled “App Registrations”For each platform (iOS and Android), an app is registered in Firebase:
| Platform | Configuration File | Contains |
|---|---|---|
| iOS | GoogleService-Info.plist | API keys, Project ID, App ID |
| Android | google-services.json | API keys, Project ID, App ID |
Firebase Storage
Section titled “Firebase Storage”The file storage for media like profile pictures, uploads, and more:
- Bucket: Storage location for all files
- Security Rules: Rules for who can upload/read what
- Location: Geographic server location (e.g., Europe)
Setup Tips
Section titled “Setup Tips”Frequently Asked Questions
Section titled “Frequently Asked Questions”Do I need a paid Firebase account?
Section titled “Do I need a paid Firebase account?”No, the free “Spark” plan is completely sufficient for most apps. It includes:
- Authentication (unlimited)
- Firestore (1 GB storage, 50,000 reads/day)
- Storage (5 GB storage, 1 GB downloads/day)
Can I use an existing Firebase project?
Section titled “Can I use an existing Firebase project?”Yes! In the assistant, you can either create a new project or select an existing one. Just make sure the Bundle ID and Package Name match your app.
What happens if I cancel the assistant?
Section titled “What happens if I cancel the assistant?”You can cancel the assistant at any time and continue later. Already created projects and apps remain in the Firebase Console.
Do I need to set up both platforms (iOS and Android)?
Section titled “Do I need to set up both platforms (iOS and Android)?”It’s recommended to set up both platforms, even if you only use one initially. This way you’re prepared for the future.