Implement Firebase Push Notification in Android within 120 seconds

Waqas Younis
2 min readDec 1, 2018

In this competitive era of apps, notifications are crucial to grab the attention of your dormant user. On average, users install up to 80 apps on their phone. It is more likely that they will just install and forget your app too, so to avoid that we have to poke users and notification are best for that.

I hope many of you already know about Firebase, it is a SaaS offering a lot of services related to Apps Development.

So, in order to send a notification to an Android App. You need Firebase Console, that you can have using your Google account and Android Studio.

After creating the project in Android Studio, you need to connect it with Firebase Console manually or just sign in to Android Studio and let assistant connect your app to Firebase.

Goto Tools>Firebase and then in the right pane select Cloud Messaging, then click Set up Firebase Cloud Messaging and hit Connect Firebase. Make sure that you are signed in to Android Studio.

It will take some time to sync the project. After the sync is completed you will see the button turns to a green text saying Connected, below that you will see Add FCM to your App button. Hit that button and Accept the Changes. It will also make the project sync. AND DONE!

The Firebase Push Notification feature is successfully implemented in your app.

Here is how you can send the notification from Firebase Console

Source: FireabseTutorials.com

If you learn something out of this then please hit like on following facebook page to stay updated with latest posts

Firebase Tutorials Facebook Page

--

--