GOLDTV IPTV DOCUMMENTS
  • Introduction
    • Required
    • Start
  • Android
    • Icons
    • Get dependencies
    • Change Package name
  • Settings
    • Colors
    • Text App
    • Language
  • Firebase
    • Install Firebase CLI
    • Firebase Flutter Project
    • Admin Panel Firebase
  • Build app
    • Run app
    • Build and install the application
Powered by GitBook
On this page
  1. Firebase

Firebase Flutter Project

PreviousInstall Firebase CLINextAdmin Panel Firebase

Last updated 5 months ago

Create a New Firebase Project

  1. Go to the .

  2. Click Add Project and follow the steps to create a new project. Example: Name the project GoldTvApp.

Give your project name and click continue.

Step 4: Add Firebase to Your Flutter App

  1. Copy the Flutter command provided by Firebase during project setup. Example command:

    flutterfire configure --project=rixos-play
  2. Run the command in your app's root directory. This will generate the required Firebase configuration files (google-services.json for Android and GoogleService-Info.plist for iOS).

  3. Pick Android and iOS platforms during the configuration process.

Step 1: Add New Project Platform

Step2: Click Flutter

Step 3: Copy both commands to your terminal project

Step 5: Enable Cloud Firestore

  1. In the Firebase Console, go to Build > Firestore Database.

  2. Click Create Database, choose a location, and set it to start in test mode. Test mode automatically enables read and write permissions:

    rules_version = '2';
    
    service cloud.firestore {
      match /databases/{database}/documents {
        match /{document=**} {
          allow read, write: if true;
        }
      }
    }
  3. Publish the rules.


Firebase Console