Home
  • Generating google-service file to enable FCM(Firebase cloud messaging) in the android application

    Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost. It is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features!

     

    1. Generate google-service.json file of FCM for existing GCM service
    2. Generating a new google-service.json file for a new FCM based project

     

    Note: Please follows the steps mentioned in Generating a new google-service.json file for a new FCM based project. 

    Generating a new google-service.json file for a new FCM based project

     

    Step1:  Select CREATE NEW PROJECT from https://console.firebase.google.com/

     

     

    Step2: Use your app name as a project name and select country region and then select CREATE PROJECT.

     

    2

     

    Step3: Select Add Firebase to your Android app for Android users

     

    add_app_option_android

     

    OR

    Additionally, we can create the project from one more section. For this, we need to click on Project Settings and scroll to the Add app section.

     

    add_app_option_2

     

    Thus, the add app button will again give 3 options amongst which Android must be selected.

     

    add apps option2_android

     

    Step4: Add the package name of the application and create ADD App.

     

    note: Please consult with us regarding the package name.


    register_app_androidpng

     

    Step5: When you click on the Register App button, you will be redirected to Step-2 (Copy config file). The GoogleService.json file will be downloaded automatically. This file you need to provide us.

     

    mobikul article

     

     

    Step6: Now you can skip the further steps and go back to general settings. Thus, the app is already added.

     

    added app android

     

    Now go to the Cloud Messaging tab.

     

    Server_key_android

     

    Please share the Legacy server key or server key value obtained in this step with us.

    For the iOS Applications, Please check the following link

    Sources:

    https://firebase.google.com/docs/cloud-messaging/

    https://developers.google.com/cloud-messaging/android/android-migrate-fcm

     

    Further Reading:

    https://developers.google.com/cloud-messaging/faq

     

    Was this article helpful?

    9 Likes

Leave a Comment

Your email address will not be published. Required fields are marked*


1 comments

  • محمد مهدی سیف لیتکوهی
  • Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home