Essential Kit Tutorials
DocumentationDownload
Version 2
Version 2
  • Introduction
  • Features
  • Version 2 vs Version 1
  • Release Notes
    • ✅Version 2.7.4
    • Version 2.7.3
    • Version 2.7.2
    • Version 2.7.1
    • Version 2.7.0
    • Older Versions
      • Version 2.6.1
      • Version 2.6.0
      • Version 2.5.1
      • Version 2.5.0
      • Version 2.4.1
      • Version 2.4.0
      • Version 2.3.1
      • Version 2.3.0
      • Version 2.2.1
      • Version 2.2.0
      • Version 2.1.1
      • Version 2.1.0
      • Version 2.0.4
      • Version 2.0.3
      • Version 2.0.2
      • Version 2.0.1
      • Version 2.0.0
  • Plugin Overview
    • Settings
    • Folder Structure
    • Installation FAQ
    • Localisation
  • Address Book
    • Overview
    • Use Cases
    • Setup
    • Usage
    • Testing
    • FAQ
  • Billing Services
    • Overview
    • Use Cases
    • Setup
      • iOS
      • Android
    • Usage
    • Testing
      • iOS
      • Android
    • FAQ
  • Cloud Services
    • Overview
    • Use Cases
    • Setup
      • iOS
      • Android
    • Usage
    • Testing
    • FAQ
  • Deep Link Services
    • Overview
    • Use Cases
    • Setup
      • iOS
      • Android
    • Usage
    • Testing
    • FAQ
  • Extras (Utilities)
    • Overview
    • Usage
  • Game Services
    • Overview
    • Use Cases
    • Setup
      • iOS
      • Android
    • Usage
    • FAQ
  • Media Services
    • Overview
    • Use Cases
    • Setup
    • Usage
    • FAQ
  • Native UI
    • Overview
    • Use Cases
    • Setup
    • Usage
    • FAQ
  • Network Services
    • Overview
    • Use Cases
    • Setup
    • Usage
    • FAQ
  • Notification Services
    • Overview
    • Use Cases
    • Setup
      • iOS
      • Android
    • Usage
    • FAQ
  • Rate My App
    • Overview
    • Use Cases
    • Setup
    • Usage
    • FAQ
  • Sharing
    • Overview
    • Use Cases
    • Setup
    • Usage
      • Message Composer
      • Mail Composer
      • Social Share Composer
      • Share Sheet
    • FAQ
  • Web View
    • Overview
    • Use Cases
    • Setup
    • Usage
    • FAQ
  • Notes
    • Resolving Android Gradle Build Errors
    • Google Play Services Authentication
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Notification Services
  2. Setup

Android

PreviousiOSNextUsage

Last updated 4 years ago

Was this helpful?

On Android, Plugin uses FCM (Firebase Cloud Messaging) service under the hood for registering to push notifications.

For making FCM to work, only thing you need to do is to copy the google-services.json file from Firebase console to Assets folder.

Please follow the below steps for getting google-services.json file.

  1. Open website

  2. Click on Go to Console

  3. Select your project (if you don't find one, create a new one)

  4. Next to Project Overview, click on settings gear icon

  5. Under General tab, go to "Your apps" (If you don't have an app added, add it)

  6. Select your app and click on the "google-services.json" button

  7. Copy the downloaded google-services.json file to your unity project's Assets folder

For extra security, its good to add your app's fingerprint in the "Your apps" section and then download the json file.

Sending notifications from your server

For sending a notification to user's device from your server, you need to send the message to FCM servers. FCM servers routes the message to the required device.

In order to let your server communicate with FCM servers, they need to be authenticated. For authentication, you need to use the "Server Key". Please check below steps on getting server key

  1. Open website

  2. Click on Go to Console

  3. Select your project (if you don't find one, create a new one)

  4. Next to Project Overview, click on settings gear icon

  5. Select Cloud Messaging tab

  6. Copy and use Server Key in your server

Firebase
Firebase