1. Requirements
- Google console :: Project Id.
- Enable API :: Get API key.
- Client.
- Server.
2. Sequence
- Client sends Project Id to Google server.
- Client get a GCM key.
- Client relays this to server.
- Client registers it GCM intent listener.
5. Server sends following request to the GCM server
1. Header
1. Target
- Https://android.googleapis.com/gcm/send.
2. Header
1. Authentication
1. key=
- API-key.
2. content-type
- Application/json.
3. Content
1. registration_ids
- (array) [].
2. data
1. (aso. array) {- Message.
- ….
- Client’s app’s listener receives the notification.
3. Sound
- Notification.sound = Uri.parse("android.resource://" + getPackageName() + "/" +R.raw.pop);.
- Notification.defaults |= Notification.DEFAULT_VIBRATE;.
Updated:
2026 Aug 19

