Page 1 of 6

Select Push Notification

Posted: Thu Jun 19, 2014 2:23 pm
by Carlos Castillo6909856

On your recent webinar, you explain how to choose one from tree options of Push Notification, but how can a configure my self to have them all, or two of the options and not just one?

Any help kindly appreciated

Best


Select Push Notification

Posted: Thu Jun 19, 2014 5:00 pm
by Kateryna Grynko

Hi Carlos,

What Push notifications do you mean?
Check here please: http://devcenter.appery.io/documentat...


Select Push Notification

Posted: Thu Jun 19, 2014 5:26 pm
by Carlos Castillo6909856

This is what I need to accomplish

Working with channels

In the predefined devices collection, there is a Channels column. It has an array type, and can contain any amount of values:.....

But how do I set the UI
I will enable like 60 different toggle on/off options where the user will custom his notifications

So how do I set up the mapping, since all 60 will load info to the channel colum from the DB


Select Push Notification

Posted: Fri Jun 20, 2014 8:18 am
by Evgene Karachevtsev

Hello Carlos,

You can't do mapping of multiple values in one request-parameter, but you can use js in mapping to generate the data in the desired format. You can find more info here: http://devcenter.appery.io/documentat...


Select Push Notification

Posted: Mon Jul 07, 2014 7:55 pm
by Carlos Castillo6909856

HI

After several trials I ́m a little stuck with the final setup

Im trying to build an App that the end user is capable of choosing from a menu several channels for him to recive so I.m sending you what I have done so far

The JS:
return '{"$and":[{{:' + Number(Appery("OpBIIA").val()) + '},{{:' + Number(Appery("OpBIIB").val()) + '},{{:' + Number(Appery("OpBIIC").val()) + '}]}';

Image Image Image


Select Push Notification

Posted: Mon Jul 07, 2014 8:17 pm
by Carlos Castillo6909856

Image

Also to invoke the service on a check box is it , change value?,selected?, click?

Best

And thak you for your help


Select Push Notification

Posted: Wed Jul 09, 2014 11:09 am
by Kateryna Grynko

Hi Carlos,

You would also need a collection field name:. Please find an example here: http://docs.mongodb.org/manual/refere...


Select Push Notification

Posted: Wed Jul 09, 2014 3:11 pm
by Carlos Castillo6909856

Base on your suggetion:
{ $and: [ { }, { } , ... , { } ] }

I did the folowing JS on the mapping

return [parseInt({$and: [ { (Appery("OpBIIA").val()) } , { (Appery("OpBIIB").val())},{(Appery("OpBIIC").val()) }]})];

But I have syntax errors can you help me just to take a quick view and tell me what am I missing?

Best


Select Push Notification

Posted: Wed Jul 09, 2014 8:02 pm
by Evgene Karachevtsev

Hello Carlos,

We responded to you by email yesterday
"You should get an array of all checked checkboxes and return an array with values of these checked checkboxes. You don't need parseInt, $and"
You should use something like this

codevar checked = [];
Appery("mobilecheckboxgroupName").find("input:checked").each(function(){
checked.push(parseInt($(this).val()));
});
return JSON.stringify(checked);/code

Could you please clarify, did you use this code and did you get any problems with it?


Select Push Notification

Posted: Thu Jul 10, 2014 12:40 am
by Carlos Castillo6909856

Hi

Thank you for your responce I did tried, but On Device Channel DB not getting any data

I do enclose what I did, so you can tell me what am I doing wrong

Best
CECF

Image Image Image