In this tutorial you will learn to implement android push notification using firebase cloud messaging (FCM).
Firebase is a real time cross platform database that provides various functionalities like authentication, storage, notification, etc. Firebase is becoming popular among developers due to its simplicity and easy implementation. In earlier days Google Cloud Messaging (GCM) was used to implement push notification. But Firebase Cloud Messaging (FCM) is better and easy to implement than GCM.
Android Push Notification Using Firebase Cloud Messaging (FCM)
To use FCM there are few minimum requirements.
Device with Android 2.3 or newer and Google Play services 9.6.0 or newer
The Google Repository from the Android SDK Manager
Android Studio 1.5 or higher version.
Create a new android studio project with package name com.pushnotificationexample and copy the package name.
Go to Firebase console https://firebase.google.com/console/ to create a new project.
Click on Create New Project button. Enter some project name and your country. Click on Create Project button to create the firebase project.