Firebase

Push Notification Setup

  • First, go to the Firebase Console and sign in with your email account and go to the console.
  • Then Create A project by your app name.

To get the FCM API

  • Go to Project Overview > Project Settings > General > Project ID
  • Copy your project ID. In this example, it is topstories.
  • Your FCM API URL will look like this: https://fcm.googleapis.com/v1/projects/topstories/messages:send Replace topstories with your actual project ID.

How to get Service Account Key Configuration JSON

  • First, go to the Firebase Console and sign in with your email account and go to the console.
  • Click on the project you have just created or create a new one.
  • Go to Project Overview > Project Settings > Cloud Messaging and click on Manage Service Accounts
  • Click on the three dots and click on Manage Details
  • Click on KEYS Tab and click on create new key
  • Choose JSON and click on create
  • A .json file will be downloaded. Save it in a secure location, then open the file and copy its contents.
  • Paste the whole json data in Service Account Key Configuration JSON and click on update.

Build and Release android app

https://docs.flutter.dev/deployment/android

After following the above steps, you must generate sha1 key for google login to work.

In order to generate the SHA1 key, go to terminal and run the following command:

To add an SHA-1 key to your Firebase project for Google Login, follow these steps:


Step 1: Get Your SHA-1 Key

The method to retrieve your SHA-1 key depends on how you’re developing your app:

For Debug SHA-1 (Android Studio)

  1. Open a terminal in Android Studio.
  2. Run the following command: ./gradlew signingReport
  3. Look for SHA1 under the debug section.

For Release SHA-1 (Production APK)

  1. If using a release keystore, run: keytool -list -v -keystore path-to-keystore.jks -alias your-key-alias -storepass your-store-password -keypass your-key-password
    • Replace path-to-keystore.jks with your actual keystore file path.
    • Replace your-key-alias, your-store-password, and your-key-password with your credentials.

For Play Store (If Using App Signing by Google Play)

  1. Go to Google Play Console.
  2. Navigate to Setup > App Integrity.
  3. Copy the SHA-1 certificate fingerprint.

Step 2: Add SHA-1 Key in Firebase Console

  1. Go to Firebase Console.
  2. Select your project.
  3. Click on the settings icon ⚙️ > Project settings.
  4. Go to the “General” tab.
  5. Scroll down to “Your apps” and select the Android app you registered.
  6. Under “SHA certificate fingerprints,” click “Add Fingerprint.”
  7. Paste the SHA-1 key you obtained earlier.
  8. Click Save.

Now your app should be able to authenticate users using Google Sign-In! 🚀

App Logo

To change the App Logo, follow the following steps

  1. open your pubspec.yaml
  2. upload the desired image and set the path to image_path under flutter_icons
  3. After that open terminal
  4. run the below code
flutter pub get
flutter pub run flutter_launcher_icons:main

Strings

Most of the strings in the application are dynamic that is they come from the server itself. If you wish to change some of the static texts then you can do so by going under each views and changing it from there. All of the views are placed under

libs –> screen