Read now
  • 7 Likes

    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 new FCM based project

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

    Generating a new google-service.json file for 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 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 the Step-2 (Copy config file). The GoogleService-info.plist file will be downloaded automatically. This file you need to provide us.

     

    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 iOS Application, 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

     

    Really this article is helpful?

    YESNO
    Let's make it better now!

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close