Firebase configure

  • /

13th Dec, 2024

Configure Firebase for Android:  

  • Create a new Firebase project for your app from the link https://console.firebase.google.com.

  • Add an app for Android by package name and download the google_services.json file.

  • Add the google_services.json file to the infixlms_instrcutor > android > app folder after successfully downloading the google_services.json file. Delete the older google_services.json file if it already exists.



    Configure Firebase for iOS:  

    • Create a new Firebase project for your app from the link https://console.firebase.google.com. [ You can skip this. You have already a Firebase project ]

    • Add an app for Apple by package name and download the GoogleService-Info.plist file.

    • Add the GoogleService-Info.plist file to the infixlms_instrcutor > ios > Runner folder after successfully downloading the GoogleService-Info.plist file. Delete older GoogleService-Info.plist file if there already exists.



      Now you need to update the apiKey, appId, messagingSenderId, projectId, and other keys after successfully adding the google_services.json/GoogleService-Info.plist file according to the google_services.json/GoogleService-Info.plist. You can find the above key if you open the google_services.json/GoogleService-Info.plist file.


      • Go to the infixlms_instrcutor > lib folder

      • Open the firebase_options.dart file, then

      • Change APIKey, appId, messagingSender ID, and project ID according to the google_services.json/GoogleService-Info.plist for Android/iOS.


Categories
Latest Versions