Step by step

  1. Go to https://console.firebase.google.com/u/0/

  2. Click add new project

    Add project

  3. Enter project name, accept licenses and click create project

  4. When project opens choose android option

    Options

  5. Enter package name and click register app

    Register app

  6. Download google service json file and place it in app directory

    Download JSON

  7. Add to project level build.gradle

    buildscript {
        dependencies {
    	    // Add this line
            classpath 'com.google.gms:google-services:4.2.0'
        }
    }
    
  8. Add to app level buildgradle

    // Add to the bottom of the file
    apply plugin: 'com.google.gms.google-services'
    
  9. Open project settings

    Overview

  10. Generate private key

    • Settings -> Service Account

    • Click Generate New Private Key, then confirm by clicking Generate Key

    • Securely store the JSON file

      Generate private key

  11. Add JSON file to Ocamba platform

    Add JSON to Ocamba

  12. Choose project and enable API (if enabled skip this step)

    Link

    Enable fcm

On This Page