-
Notifications
You must be signed in to change notification settings - Fork 2
How to generate the google services.json file and Integrate it with the App.
Priyansh Nama edited this page Sep 7, 2020
·
3 revisions
- Go to Firebase Console
- Click on Add project.
- Enter the name TechnicalFest
- Click on Continue
- toggle the Enable Google Analytics for this project to on and Click on Continue
- Choose or create a Google Analytics account and then Click on Continue.
- Firebase will start making a project wait until it finishes and then Click on Continue
- Select Android from Add an App.
- Enter com.priyanshnama.technical_fest in Android Package name.
- Technical-Fest in App nickname.
- Now open your Android Studio and load the project.
- Click on Gradle in the Right Side Panel.
- Go to Technical-Fest > Tasks > Android > Signing Report and double Click on it.
- Get your Debug signing certificate SHA-1 value from the window which shows you the result(Report).
- Paste it in the Debug signing certificate SHA-1 (optional) box.
- Click on Register App.
- Now click on Download google-services.json.
- Now paste the downloaded file into \Technical-Fest\app folder.
- Click on Next.
- Click on Next as the dependencies are already included.
- Now run your app and let it configure the app (click on skip this step if it does't works).
- Go to Authentication from Left Side panel and click on Sign-in method.
- Click on Google and enable it.
- Provide Technical-Fest as the public facing name and your email for support.
- Click on Save.
- Go to Firestore from the Left Side panel and Click on Create Database.
- Start in Production Mode and click Next.
- Select the nearest loction of Firestore to you. (asia-south 1 for INDIA).
- Click on Enable
- Join this google group.
- now again to Firebase Console you now have viewing access of database, so just replicate it.
- do the same for Realtime database and Storage.
- Do copy the rules from the viewing project and implement the same in yours for Realtime Database, FireStore and Storage