DEV Community

Cover image for Applozic Android SDK Tutorial 4 – Push Notifications using Firebase
Anurag Jayaraman for Applozic Inc

Posted on • Originally published at applozic.com

Applozic Android SDK Tutorial 4 – Push Notifications using Firebase

This tutorial is Part 4 of a multi-part series covering Applozic Android SDK integration into an Android app.

Our goal is to learn the following steps in this tutorial:

  1. Create FCM key for your app in Firebase
  2. Enable FCM notifications from Applozic dashboard
  3. Integrate Firebase handler in your app
  4. Process the received notifications

You can download the sample Android chat app from Applozic GitHub.

💡 If you already have FCM set up for your app, move directly to Step 2. 
Enter fullscreen mode Exit fullscreen mode

Firebase and FCM key

Firebase is a mobile application development platform from Google with powerful features for developing, handling, and enhancing highly functional and versatile web, Android, and iOS platform applications.

💡 FCM (Firebase Cloud Messaging) was previously called GCM (Google Cloud Messaging).
Enter fullscreen mode Exit fullscreen mode

To learn more about Firebase's features and use cases, check out my dev.to post:

Generate FCM key in Firebase

Login to the Firebase Developer Console and click on "Create a project".

Firebase main screen
Firebase Main Screen

In your project dashboard, click on the "Settings" icon > "Project settings".

Project settings
Project settings

Go to the "Cloud Messaging" tab.

Cloud Messaging tabs
Cloud Messaging tabs

The "Server key" and the "Sender ID" are your private credentials.
Leave this tab open and proceed to the next step.

Server key location
Server key location

Set up FCM Notifications

The Server key is an API key that is a unique string used to route requests to your Firebase project when interacting with Firebase and Google services.

Your FCM credentials are unique to the project you have created, so keep them secure and do not share them with anyone.

Update FCM Server key in Applozic Dashboard.

Go to your Applozic Dashboard. Click on "Settings".

Settings in Applozic Dashboard.
Settings in Applozic Dashboard

Click on "Chat" > "Notifications".

Notification tab under Chat
Notification tab under Chat

Click "Add Credentials" under FCM and paste the "Server Key" from Firebase credentials.

Add FCM Credentials
Add FCM Credentials

Voila! Your app is set up for use with FCM.

Continue this Tutorial on Applozic Blog!

We have the detailed tutorial with code snippets available on our blog for you to continue with your integration!

Click here to learn how to:

  • Integrate FCM in your application
  • Process the received notifications

Top comments (0)