- Navigate to google console
- Click “add project” and follow on screen instructions. After project is initialized click “Continue” to navigate to project’s Firebase dashboard.
- Authentication:
- On the left menu click Authentication -> Get Started -> Email/Password
- Enable the first option. Let the passwordless option disabled.
- Firestore Database:
- On the left menu click Firestore Database -> Create Database -> Start in Production Mode
- Select a region from the dropdown.
- click “Enable”.
- Storage:
- On the left menu click Storage -> Get Started -> Next
- Select a location from the dropdown.
- Click Done.
- On the left menu click Project Overview -> Project Settings -> Add App.
- Android. Choose android app from the options.
- The “Android package name” must match your local projects package name which can be found inside of the
manifest
tag within the/android/app/src/main/AndroidManifest.xml
file within your project. It must be the package name you generated at first step of this documentation. - Download the
google-services.json
file and place it inside of your project at the following location:/android/app/google-services.json
.
- The “Android package name” must match your local projects package name which can be found inside of the
- iOS. Choose iOS app from the options. The “iOS bundle ID” must match your local project bundle ID.
- The bundle ID can be found within the “General” tab when opening the project with Xcode. It must be the package name you generated at first step of this documentaion.
- Download the
GoogleService-Info.plist
file. - Using Xcode, open the projects
/ios/{projectName}.xcodeproj
file (or/ios/{projectName}.xcworkspace
if using Pods). Right click on the project name and “Add files” to the project. Select the downloadedGoogleService-Info.plist
file from your computer, and ensure the “Copy items if needed” checkbox is enabled.
- Android. Choose android app from the options.
- Collections.
- Navigate to “Firestore Database” inside your project in Firebase console.
- For each of the collections found in src/constants/CollectionNames.js, click “Start collection” and add its name (eg properties).
- Collection “pricing_plans” holds the pricing plans an agency can choose and must be configured explicitly to have two string fields with names like in following image. You can modify this collection at any time, the mobile app will pick and show your pricing plans dynamically.