Closed emaillenin closed 8 years ago
no gem support for sending messages to topics?
I have done some modifications to handle topics. https://github.com/spacialdb/gcm/pull/33
Hey. I've forked and implemented it. There are some documentation on readme. Hope it can help you as helped me. (https://github.com/mangar/gcm)
gcm = GCM.new("my_api_key")
options = {data: {title: "Title", message:"Message"}}
gcm.send_topic("TOPIC_NAME", options)
As mentioned here - https://developers.google.com/cloud-messaging/topic-messaging