React-Native Post 5: How to create new firebase project and integrate it with android

Step 1: Login / Signup new account in firebase
Step 2: Create new project add details like below 
  • to generate SHA-1 in ubuntu run this command 
    • keytool -exportcert -list -v -alias androiddebugkey -keystore ./android/app/debug.keystore

  • Click on register app
Step 3: Now download google-service.json file and put it inside /android/app/


Step 4: Now follow step 3 to Add Firebase SDK in as mentioned. there will be comments like Add this line just copy those line put where it is mentioned to put. 
  • currently it is like i have to add
    • android/build.gradle => in first dependencies object   classpath 'com.google.gms:google-services:4.3.3'
    • and in android/app/build.gradle => at the bottom add this like apply plugin: 'com.google.gms.google-services' 
That's it your project is connected with firebase now enjoy firebase services.




Post a Comment

Previous Post Next Post