edganiukov / fcm

Golang client library for Firebase Cloud Messaging.
MIT License
24 stars 10 forks source link

Valid payload produces error #5

Closed ghost closed 7 years ago

ghost commented 7 years ago

Example from the documentation: https://firebase.google.com/docs/cloud-messaging/ios/topic-messaging#http_post_request

This payload should be accepted by the library, but it is not:

{
  "condition": "'dogs' in topics || 'cats' in topics",
  "data": {
    "message": "This is a Firebase Cloud Messaging Topic Message!",
   }
}
edganiukov commented 7 years ago

Thanks for the issue. This PR #6 should fix it.

edganiukov commented 7 years ago

Is error still occurs? If not, I am gonna close this issue