Top

Chatzy Documentation

Firebase Setup:

NOTE :
- Before running the app make sure you have import Collection json in Firestore database which we have provided.
- Before import json in firestore database remember to give rule permission or create Firestore Data. See the Firebase Rules for create Firestore Database and how to give permission in firebase.
Also you can check below video for how to import json in firebase:
VIDEO URL : https://youtu.be/Jd0sW8Wrc5Y?si=AxC6BmWBFwZfZU4a
- For Firebase Phone Authentication, you need to enable billing on your Firebase account, as it is required. Please refer to the url below for instructions on enabling billing for your firebase account.
URL : https://youtu.be/Jd0sW8Wrc5Y?si=AxC6BmWBFwZfZU4a


Android :


  1. Select an Android app in the firebase console.
  2. Write project package name and SHA-1 Key.
  3. Download google-service.json file and keep in project root directory
  4. Example Chatzy(Project Name) -> android -> app
  5. Replace the file in "android/app"
  6. Update in project -> build.gradile
  7. Update in project ->android -> app -> build.gradile

iOS:


  1. Create an IOS or Android click on Add app
  2. Select an iOS app in the firebase console.
  3. Write bundlid and APPID
  4. Download the Googleservice-info.plist file
  5. Replace the file in "ios/Runner/info.plist"
  6. Update "FirebaseApp.Configure()" in AppDelegate File
Firebase Configuration
  • Please enable phone.
How to add SHA-1 key in firebase
  1. On left hand side panel click on setting icon. On click Setting button pop open open. In that click on Project Settings

  2. In General tab, go down in that click Add fingerprint

  3. Generate debug and release SHA1 and SHA26 key and in fingerprint

Create Debug and Release SHA-1 add in firebase
  • For Debug mode:
    • keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey
    • -storepass android -keypass android
  • for Release mode:
    • keytool -list -v -keystore [keystore_name] -alias [alias_name].
  • For Create Bundle in android :
    • If you want to create bundle instead of apk you have to add new signin SHA-1 From you google console like :
      Go to Google play console ⇒ Select you app ⇒ Go to release Management ⇒ Open App Signin ⇒ Copy SHA-1 from app singin certificated and paste it to firebase project settings.