Integrating Firebase Cloud Messaging with your application

 1. Setting up the project

  • Create a Firebase project in the Firebase console by clicking on Add project.
  • Click Add Firebase to your Android app.
  • A window will appear asking you for your application’s package name:


  • The package name should match the one indicated in the AndroidManifest.xml file in your project directory as shown below:


  • After adding the application to the Firebase console, you will be prompted to download a google-services.json file. Download and place the file into your Android app module root directory.

2. Adding Firebase support to Android studio project.

Add the following rules to your root-level build.gradle file, to enable google-services plugin:

Project-level build.gradle (<project>/build.gradle):

buildscript {
    dependencies {
        // Add this line
        classpath ''

In your app-level Gradle file (app/build.gradle), add the apply plugin at the bottom, and also add the Firebase dependency:

App-level build.gradle(<project>/<app-module>/build.gradle)


Note: If you run into any runtime errors, you may need to use firebase-core version 11.2.2.

3. Uploading the API key to Skillz 

  • Go to, and select your project.
  • Select Settings (top left corner of the console)


  • Select Cloud messaging tab
  • Copy the server key
  • Go to your Skillz developers console and select your application
  • Select the Push Notification tab on your left
  • In the Android - GCM Push notification, paste your server key to the blank text field, and hit Save: