Deprecation of Cloud Messaging API (Legacy) and Update to Firebase Cloud Messaging API (V1) (Push Notification)

This guide provides step-by-step instructions on how to update from the deprecated Cloud Messaging API (Legacy) to the new Firebase Cloud Messaging API (V1) for push notifications.

Steps to Update Firebase Cloud Messaging API

 

Step 1: Log in to your Firebase account.

  • Navigate to your Firebase account: Firebase Console
  • Enter your Google ID and password to log in.
  • Select the project you created for your app and open it.

 

Screenshot 2024-07-12 at 3.14.50 PM

Step 2: Locate your app in the project.

  • Identify your app by its bundle ID.



Screenshot 2024-07-12 at 3.24.42 PM

Step 3: Access project settings.

  • Click on the settings option to open the project settings.

Screenshot 2024-07-12 at 3.28.09 PM 

Step 4: Download the google-services.json file.

  • Scroll down and click on google-services.json to download the file.



Screenshot 2024-07-12 at 3.29.22 PM

Step 5: Generate a new private key.

  • Go to the "Service account" section and click on "Generate new private key" to download the file needed for building the app.

Screenshot 2024-07-12 at 3.34.31 PM

Now you have all the required files to build the app.

 

Step 6: Access your school admin portal.

  • Go to your school admin portal.

Screenshot 2024-07-12 at 3.02.29 PM

Step 7: Navigate to the "Mobile Apps" section.

  • Under "Websites & Apps," select "Mobile Apps."


Screenshot 2024-07-12 at 3.04.53 PM

Step 8: Initiate the app build process.

  • Click on "Build App."

Screenshot 2024-07-12 at 3.42.45 PM

Step 9: Proceed without changes.

  • Do not make any changes and click "Next."



Screenshot 2024-07-12 at 3.44.58 PM

Step 10: Upload the required files.

  • Under "Service file (.json)," upload the google-services.json file from Step 4.
  • Under "Firebase Admin SDK file (.json)," upload the private key file from Step 5.
  • Click "Next" after uploading both files.


Screenshot 2024-07-12 at 3.52.14 PM

Step 11: Continue without changes.

  • Again, do not make any changes and click "Next."

 

Screenshot 2024-07-12 at 3.54.51 PM

Step 12: Submit the build.

  • Click on "Submit build."


Screenshot 2024-07-12 at 3.56.10 PM

Step 13: Wait for the app to build.

  • The build process takes around 30 minutes.
  • After the app is built, download the AAB file and follow the article to release the app on the Google Play Console: App Release Article.

This process ensures your app is updated to use the new Firebase Cloud Messaging API (V1) for push notifications.