Skip to content

How to generate the google services.json file and Integrate it with the App.

Priyansh Nama edited this page Sep 7, 2020 · 3 revisions

Welcome to the Technical-Fest wiki!

How to generate the google-services.json file.

Create a Firebase Project.

  1. Go to Firebase Console
  2. Click on Add project.
  3. Enter the name TechnicalFest
  4. Click on Continue
  5. toggle the Enable Google Analytics for this project to on and Click on Continue
  6. Choose or create a Google Analytics account and then Click on Continue.
  7. Firebase will start making a project wait until it finishes and then Click on Continue

Connect your Android App.

  1. Select Android from Add an App.
  2. Enter com.priyanshnama.technical_fest in Android Package name.
  3. Technical-Fest in App nickname.
  4. Now open your Android Studio and load the project.
  5. Click on Gradle in the Right Side Panel.
  6. Go to Technical-Fest > Tasks > Android > Signing Report and double Click on it.
  7. Get your Debug signing certificate SHA-1 value from the window which shows you the result(Report).
  8. Paste it in the Debug signing certificate SHA-1 (optional) box.
  9. Click on Register App.
  10. Now click on Download google-services.json.
  11. Now paste the downloaded file into \Technical-Fest\app folder.
  12. Click on Next.
  13. Click on Next as the dependencies are already included.
  14. Now run your app and let it configure the app (click on skip this step if it does't works).

Activate services in Console

Authentication

  1. Go to Authentication from Left Side panel and click on Sign-in method.
  2. Click on Google and enable it.
  3. Provide Technical-Fest as the public facing name and your email for support.
  4. Click on Save.

Database

  1. Go to Firestore from the Left Side panel and Click on Create Database.
  2. Start in Production Mode and click Next.
  3. Select the nearest loction of Firestore to you. (asia-south 1 for INDIA).
  4. Click on Enable
  5. Join this google group.
  6. now again to Firebase Console you now have viewing access of database, so just replicate it.
  7. do the same for Realtime database and Storage.
  8. Do copy the rules from the viewing project and implement the same in yours for Realtime Database, FireStore and Storage