Firebase

Firebase Setup

1. Go to firebase console and create a new project enter your Business/Project name.

2. Go to FirebaseAuthentication then Click on Sign-in method

3. Enable Google & Anonymous Provider.

Google Firebase Setup

4. Create your own google-services.json file from https://console.firebase.google.com/ and replace it for both app.

5. For release open android studio and use gradle signingreport command to create release signin report for your own app. Otherwise both app Google signin features will not work.

Copy the CMD linekeytool -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore (if required password then password is:- android )Then Hit Enter

Now copy SHA1: Certificate fingerprints. add go to firebase app project settings and add Fingerprints.

Add 2 certificate for each APP. One is Debug and another is for Release version of apk. (skip debug if you do not want to test your app.)

Follow For both Admin & User app. (is Important)

Realtime Notification

1. Follow below direction in lib folder to config -> notification -> notification.js->

  • android
    • android folders*
      • androidFiles.***
    • androidFiles.***
  • ios
    • ios folders*
      • iosFiles.***
    • iosFiles.***
  • lib
    • config
      • notification
        • workingfile1.dart
        • notification.js
      • workingfile1.dart
      • workingfile2.dart
      • workingfile3.dart
    • games
      • workingfile1.dart
      • workingfile2.dart
      • workingfile3.dart
    • services
      • workingfile1.dart
      • workingfile2.dart
      • workingfile3.dart
    • settings
      • workingfile1.dart
      • workingfile2.dart
      • workingfile3.dart
    • tournaments
      • workingfile1.dart
      • workingfile2.dart
      • workingfile3.dart
    • ui
      • workingfile1.dart
      • workingfile2.dart
      • workingfile3.dart
  • pubspec.yaml

Go to https://workers.cloudflare.com/for realtime notification. And copy notification.js ans paste on Cloudflare workers site.

Good Luck. Contact me if you are not able to do this. It takes only 2 min because we already set it up for you. Your need just replace.

*If you found any error on this Documentation then please contact me. Thank you*

*Good Luck*