Firebase Setup
Follow the complete Firebase setup guide to configure Firebase and Authentication for the Elite Quiz App.
🔥
Firebase Setup Guide
Click the link below to view the complete Firebase & Authentication Setup Guide
Click here →
Authentication Providers
Important
Make sure you have enabled the required Authentication Providers (e.g., Email/Password, Phone, Google, Apple) in your Firebase console under Authentication > Sign-in method.
Billing Plan Requirement
Make sure your Firebase project plan is upgraded to Blaze (Pay as you go). The Blaze plan is required for Phone Authentication to send SMS OTP verification messages without interruption.

Realtime Database Setup
Required Feature
Firebase Realtime Database is required for 1v1 Battle and Group Battle features to work properly in the app.
1. Create Realtime Database
- In your Firebase console, navigate to Build > Realtime Database (or under Databases & Storage).
- Click on Create Database, select your database location, and click Next to initialize.

2. Update Database Rules
Once the Realtime Database is created:
- Navigate to the Rules tab in the Realtime Database section.
- Replace the existing rules with the following JSON configuration and click Publish:
{
"rules": {
".read": "auth != null",
".write": "auth != null",
"battleRooms": {
".indexOn": ["roomCode", "categoryId", "type"]
}
}
}
