Skip to content

kwmt/fcm

Repository files navigation

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

About

fcm go client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages