Skip to content
/ gcm Public
forked from google/gcm

Automatically exported from code.google.com/p/gcm

License

Notifications You must be signed in to change notification settings

egilmorez/gcm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Messaging

Google Cloud Messaging (GCM) is a service that lets developers send data from servers to users' devices, and receive messages from devices on the same connection. The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly to fetch updated application or user data. The GCM service handles all aspects of queueing of messages and delivery to client applications running on target devices.

This project contains an Android app that demonstrates these aspects of GCM:

  • Registering a client app
  • Sending downstream, upstream and notification messages
  • Subscribing to topics
  • Creating notification groups
  • Using the network manager to schedule tasks

A full GCM implementation requires both a client implementation and a server implementation. For more information on GCM, including an overview and integration instructions, see Cloud Messaging.

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio. To use the app you will need a sender ID to be able to register and test client side APIs, and an API key to be able to test server side APIs. For more information, see Implementing GCM Client on Android.

Screenshots

Menu Registration Registration - registered Downstream Groups Topics Add topic Tasks

Support

If you've found an error in this project's code, please file an issue: https://github.com/google/gcm/issues

License

Copyright 2015 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Automatically exported from code.google.com/p/gcm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%