This library provides APIs to send messages to the GCM Connection Server hosted by Google via the HTTP protocol.
- Support sending messages of the following types:
- downstream messages (with send-to-sync and Notification and Data payload support)
- topic messages
- device group messages
- Support retry with exponential backoff
- Lightweight with no external dependencies
- Error values defined as constants
- Production ready with solid unit tests
To install this library:
go get github.com/wuman/go-gcm
To import as gcm
alias:
import gcm "github.com/wuman/go-gcm"
If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.
You may file an issue if you find bugs or would like to request a new feature.
- add sample
- support for godoc
- support for XMPP protocol
- support for receiving upstream XMPP messages (and sending ACK message back) from client apps
- David Wu - david@wu-man.com - http://blog.wu-man.com
Copyright 2016 David Wu
Licensed 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.