/fcm

fcm go client

Primary LanguageGoMIT LicenseMIT

fcm

Go GoDoc Go Report Card

Usage

// send push message
msg := fcm.NewMessage("/topics/all").SetPriority(fcm.High)

c := fcm.NewClient("<YOUR SERVER KEY>")
resp, _ := c.Send(msg)
fmt.Println(resp)

// get regitration token info
respInfo, _ := c.GetRegistrationTokenInfo("<REGISTRATION TOKEN>")
fmt.Println(respInfo)

Install

go get github.com/kwmt/fcm