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.
Written by Sebastián González
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#