We need 3 sections activated in firebase for pretty much any project.
- Login to Firebase Console
- Create a new project
- Go to Authentication Section
- Enable these methods:
- Email (With passwordless link)
- Phone
- Apple
-
Login to Firebase Console
-
Login into the existing project
-
Go to firestore section
-
Press "Create database"
-
Choose a production setting
-
For ME projects choose Europe Location
-
Go to "Rules"
-
Change the rules into:
rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /chat_rooms/{document=**} { allow read, write; } match /users/{userId} { allow create: if request.auth != null; allow read, update, delete: if request.auth != null && request.auth.uid == userId; } } }
-
Publish the new rules
- Login to Firebase Console
- Login into the existing project
- Go to crashlytics section
- press "enable crashlytics"
- This process should be repeated for every single app connected to Firebase
- Login to Firebase Console
- Login into the existing project
- Go to applications section
- download
Google-Services.json
- add the class path
classpath 'com.google.gms:google-services:4.3.3'
toandroid/build.gradle
- add the plugin to
android/app/build.gradle
asapply plugin: 'com.google.gms.google-services'
refer to Prepairing iOS Projects