https://github.com/osoco/grails-android-gcm-plugin
A plugin that provides a frontend for accesing Google Cloud Messaging service for Android
https://github.com/osoco/grails-android-gcm-plugin
Last synced: about 1 year ago
JSON representation
A plugin that provides a frontend for accesing Google Cloud Messaging service for Android
- Host: GitHub
- URL: https://github.com/osoco/grails-android-gcm-plugin
- Owner: osoco
- Created: 2012-08-02T13:20:16.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-10-16T11:38:43.000Z (over 13 years ago)
- Last Synced: 2025-03-27T07:35:47.673Z (about 1 year ago)
- Language: Groovy
- Size: 1.02 MB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
grails-android-gcm-plugin
=========================
A plugin that provides a frontend for accesing Google Cloud Messaging service for Android.
The plugin provides a service (androidGcmService) that has the following methods:
- sendCollapseMessage - sends a collapse message to one device
- sendMulticastCollapseMessage - sends a collapse message to multiple devices
- sendInstantMessage - sends an instant message to one device
- sendMulticastInstantMessage - sends and instant message to multiple devices
- sendMessage - sends a message (collapsed if a collapse key is provided) to the given devices
The plugin can be configured with the following options (to be placed in the project Config.groovy):
- android.gcm.api.key - The GCM service API key. Must be passed as a method parameter if is not provided in the config
- android.gcm.time.to.live - The message TTL (2419200 by default)
- android.gcm.delay.'while'.idle - Should the message be delayed with the device is idle (false by default)
- android.gcm.retries - Number of message sent retries (1 by default)
A sample project that uses the plugin is available in https://github.com/osoco/grails-android-gcm-server-example (the
most interesting class is grails-app/controllers/es/osoco/android/gcm/AndroidGcmSenderController.groovy, which uses the
Android GCM Service). This sample project is live and can be visited in http://grails-android-gcm-sender.herokuapp.com/