An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# go-push-receiver

[![GoDoc](https://godoc.org/github.com/crow-misia/go-push-receiver?status.svg)](https://godoc.org/github.com/crow-misia/go-push-receiver)
[![Go Report Card](https://goreportcard.com/badge/github.com/crow-misia/go-push-receiver)](https://goreportcard.com/report/github.com/crow-misia/go-push-receiver)
[![MIT License](https://img.shields.io/github/license/crow-misia/go-push-receiver)](LICENSE)
[![Github Actions](https://github.com/crow-misia/go-push-receiver/workflows/Go/badge.svg)](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/)