adelevie / parse-ruby-client

A simple Ruby client for the parse.com REST API
MIT License
415 stars 137 forks source link

sends push notification into channels array #189

Closed esergion closed 8 years ago

esergion commented 8 years ago

Now it's possible to send pushes to multiple channels like

push = client.push(data, ['channel1', 'channel2', 'channel3'])
rhymes commented 8 years ago

Although it seems a pretty straightforward idea (and I thank you for taking the time) it defeats the purpose of having a parameter called "channel" with a singular name that's supposed to be a string. If you want to pass along multiple channels just do

push = client.push(data)
push.channels = ['channel1', 'channel2', 'channel3']
odedharth commented 8 years ago

@rhymes When I try doing it the way you suggested I get this error:

Parse::ParseProtocolError: 102: equality needs a value instead of [subscribed testing]

I entered this:

push.channels = ['subscribed', 'testing']