GCM
Golang: Send GCM - Google Cloud Message to Android Device
Assumption Go lang is installed in your computer Android sample application with GCM support Step1: Generate server API key for GCM, This article will help you to generate server API key: [https://support.clevertap.com/docs/android/how-to-find-your-gcm-sender-id-and-gcm-api-server-key.html] Step2: Install Go library for GCM $ go get github.com/google/go-gcm Step3: Write the following function in your main.go, replace server API key in the following function. You can provide multiple client tokens in “regIDs” in case, you would like to broadcast message to multiple devices.