pcza8w
Last Updated: February 25, 2016
·
292
· sebastialonso
9b0f7bbf22d65fa2bd23496973c0ba80

Multichannel Push Notification w/Parse and parse-ruby-client

Using the parse-ruby-client you can consume the REST Parse API.

It follows this basic architecture: every installation is subscribed to a number of channels.
After a long time researching how the heck I could send a heavy targeting, I finally got the solution.

Parse doesn't have the best documentation ever, but it's doable.

push = Parse::Push.new { alert: "Message" }
query = Parse::Query.new(Parse::Protocol::CLASS_INSTALLATION).contains_all("channels", ["channel_1", "channel_2"])
push.where = query.where 
push.save

There it is.