mirror of
https://github.com/status-im/go-fcm.git
synced 2025-02-23 17:28:05 +00:00
readme fix
This commit is contained in:
parent
1dc968cd6e
commit
3f632a97dd
12
README.md
12
README.md
@ -1,6 +1,7 @@
|
||||
# go-fcm
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=MYW4MY786JXFN&lc=GB&item_name=go%2dfcm%20development&item_number=go%2dfcm¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
|
||||
|
||||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=MYW4MY786JXFN&lc=GB&item_name=go%2dfcm%20development&item_number=go%2dfcm¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
|
||||
[]()
|
||||
|
||||
Firebase Cloud Messaging ( FCM ) Library using golang ( Go )
|
||||
|
||||
@ -12,7 +13,7 @@ This library uses HTTP/JSON Firebase Cloud Messaging connection server protocol
|
||||
* send messages to a topic
|
||||
* send messages to a device list
|
||||
* message can be a notification or data payload
|
||||
|
||||
* supports notification condition
|
||||
|
||||
|
||||
###### in progress
|
||||
@ -72,7 +73,9 @@ func main() {
|
||||
c := fcm.NewFcmClient(serverKey)
|
||||
c.NewFcmMsgTo(topic, data)
|
||||
|
||||
status, err := c.Send(1)
|
||||
|
||||
status, err := c.Send(1) // send once - no retry
|
||||
// [retries n > 1]
|
||||
|
||||
if err == nil {
|
||||
status.PrintResults()
|
||||
@ -123,7 +126,8 @@ func main() {
|
||||
c.NewFcmRegIdsMsg(ids, data)
|
||||
c.AppendDevices(xds)
|
||||
|
||||
status, err := c.Send(1)
|
||||
status, err := c.Send(1) // send once - no retry
|
||||
// [retries n > 1]
|
||||
|
||||
if err == nil {
|
||||
status.PrintResults()
|
||||
|
Loading…
x
Reference in New Issue
Block a user