https://github.com/crow-misia/go-push-receiver
A library to subscribe to GCM/FCM and receive notifications within Go.
https://github.com/crow-misia/go-push-receiver
fcm gcm go push-notifications receive-notifications
Last synced: 3 months ago
JSON representation
A library to subscribe to GCM/FCM and receive notifications within Go.
- Host: GitHub
- URL: https://github.com/crow-misia/go-push-receiver
- Owner: crow-misia
- License: mit
- Created: 2019-09-01T15:14:52.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T05:37:43.000Z (3 months ago)
- Last Synced: 2025-03-03T06:23:58.080Z (3 months ago)
- Topics: fcm, gcm, go, push-notifications, receive-notifications
- Language: Go
- Homepage:
- Size: 308 KB
- Stars: 26
- Watchers: 4
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-push-receiver
[](https://godoc.org/github.com/crow-misia/go-push-receiver)
[](https://goreportcard.com/report/github.com/crow-misia/go-push-receiver)
[](LICENSE)
[](https://github.com/crow-misia/go-push-receiver/actions)A library to subscribe to GCM/FCM and receive notifications.
This library was developed inspired by push-receiver (https://github.com/MatthieuLemoine/push-receiver/).
## Build
1. install protoc
```shell
brew install protobuf
```2. build
```shell
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
$ protoc -I=proto --go_out=pb/mcs proto/mcs.proto
$ protoc -I=proto --go_out=pb/checkin proto/checkin.proto
$ protoc -I=proto --go_out=pb/checkin proto/android_checkin.proto
$ go build
```## License
MIT License
proto file is licensed by is The Chromium Authors. (BSD-style license)
(copied it from https://chromium.googlesource.com/chromium/chromium/+/trunk/google_apis/gcm/protocol/)