James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

Channels, checkboxes and push notifications

Hi
I have been working on this for some time and have read a lot of tutorials and help articles on here trying to set up channels selected by check boxes. My goal is to be able to send push notifications to subscribed to users to certain sports news etc. Users need to be able to select more than one channel.

I have tried and tried and I'm completely stuck. I have tried so much to get it working I'm unsure where i have gone wrong.

I have attached images of the settings i have. The images show.. The service and its settings. The page i have the server added to.. the mapping i have set for the channel.. and the JS i have added i have found on here to make it function.

Please help!!
If there is any more info you require let me know.

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Channels, checkboxes and push notifications

Hi James,

I see two things in your implementation:

  1. Wrong JS code place. (that get checked channels).
    Details: http://prntscr.com/5rujo2/direct

  2. I can not see how do you pass database id to the update device service.

    Regards.

James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

Channels, checkboxes and push notifications

Hi Yurii

Thank you for your quick response, it is appreciated!

I have fixed up the as per your remarks in number one. But I'm unsure what you mean by number two. Would you be able to elaborate on this?

Thank you.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Channels, checkboxes and push notifications

Hi James,

Sorry i've missed up services..

So forget 2nd option..

Also i can see extra link in your mapping:
http://prntscr.com/5s7sxj/direct

After these modifications - please take a look in WEINRE - debugger what actually request you have to API.

And take a look into request parameters.

Regards.

James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

Channels, checkboxes and push notifications

Hi Yurii

I have removed the unnecessary link as indicated.

Using WEINRE i have found that when i use the app preview in browser i get an error under the Network tab.

{"code":"BCXX004","description":"No resource method found for PUT, return 405 with Allow header"}

Under the Console tab it states the channel was selected.

When i test the App from an iPhone I do not get anything coming up in WEINRE.
Any ideas on what would cause this? I did a search on the error but I could not find anything helpful.

Thank you

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Channels, checkboxes and push notifications

Hi James -

It seems that you've forgot to set DeviceID in the query.

James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

Channels, checkboxes and push notifications

Do you mean like this? Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Channels, checkboxes and push notifications

Hello James,

Yes. Sorry for late reply.

Return to “Issues”