Anthony Hyams
Posts: 0
Joined: Tue Apr 01, 2014 10:54 am

Saving multiple push channels

I worked through the video tutorial on setting up push notifications. It all works except it only gives an example of saving a single channel.

return [parseInt(value)];

this all works but what syntax is required for multiple channels. Have tried various combinations. I have 5 check boxes whose vales equal the channel required so if 2 and 3 are checked I am returning "2,3" as the "value" how can I rewrite the line of code to send this as an array ?

Anthony Hyams
Posts: 0
Joined: Tue Apr 01, 2014 10:54 am

Saving multiple push channels

solved it after some rooting around the following javascript did the job

JSON.parse("[" + value + "]");

Return to “Issues”