Android (GCM) Push Notification Tutorial

This tutorial covers how to create a new Android application and integrate the push notification feature.

By completing this tutorial, you will be able to make necessary configurations for using the push notification feature. We also present some implementation tips at the end of the tutorial to give you some hints to expand your application.

This tutorial covers the GCM-based push. If you want to use the JPush-based push, the feature available in China, see Android (JPush) Push Notification Tutorial instead.

GCM users are recommended to upgrade to FCM. See Android (FCM) Push Notification Tutorial if you are adding the push notification feature to your mobile app. Use this tutorial to maintain existing mobile apps.

This tutorial uses a modified version of the GCM sample code for Kii Cloud. The original sample code is available on GitHub. The GCM sample code is distributed by Google under the Apache License 2.0.


Prior to going through this tutorial, you need some basic preparations for starting the Android application development.

  • Setting up the development tools

    Install Android Studio. Also, install other Android development tools as needed.

    You can use other development tools. In this tutorial, we will cover Android Studio only.

  • Registering as an Android developer

    Register as an Android developer and have the privilege to create a new project and change the configurations on Google Developers Console.

Let us move to the first step: Create an Android Application.