Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Select Push Notification

Hi Carlos,

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

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Select Push Notification

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...

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

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

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

Image

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

Best

And thak you for your help

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Select Push Notification

Hi Carlos,

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

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Select Push Notification

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?

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

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

Return to “Issues”