πŸ“₯Firebase Setup

Firebase Open

Open this link

Create a new project by tapping on the Add Project box.

  • Enter the Project name & select Analytics location. Analytics location represents the country/region of your organization and sets the currency for revenue reporting.

  • Tap on Create project. Following this, Firebase will set up a new project for you. This will take just a minute.

Change Firebase Firestore Rules

Go to your firebase firestore and change rules.

rules_version = '2';

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if true;
      allow update, delete: if request.auth != null;
    }
  }
}

Configure an Android app

In the Add an app to get started section, click on Android Icon to add an Android app to Firebase.

On the next screen, enter your Android package name & App nickname and click on Register App. Your package name is generally the applicationId in your app-level build.gradle file. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren’t visible to users.

Download the google-services.json file & place it in your project’s app root directory. Make sure the config file is not appended with additional characters, like (2).

Configure an iOS app

In the Add an app to Get Started section, click on the iOS Icon to add an iOS app to Firebase.

On the next screen, enter your iOS bundle ID & App nickname and click on Register App. You can find your Bundle Identifier in the General tab for your app’s primary target in Xcode. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren’t visible to users.

Download the GoogleService-Info.plist file & move the GoogleService-Info.plist file you just downloaded into the root of your Xcode project and add it to all targets. Make sure the config file is not appended with additional characters, like (2).

Back in the Firebase console-setup workflow, click Next to skip the remaining steps.

If you still have any questions please feel free to write to me at puttu0179@gmail.com.

Last updated