Page 1 of 1

Push notification for selected Users.

Posted: Thu Jun 26, 2014 9:01 am
by Himanshu

Hello Team,

In our case, we have a list of users, and we can select any number of user from the list, then we have to notify those users. We have UserId and UserName in that dropDown List.

Please tell me what we need to do... Do we need to send DeviceId to notify the users. However a user can have multiple devices.

Please suggest the way to do it?

Thanks.


Push notification for selected Users.

Posted: Thu Jun 26, 2014 10:45 am
by Kateryna Grynko

Hi Himanshu,

You can use code$filter/code to send notifications to a selected list of devices:
http://devcenter.appery.io/documentat...


Push notification for selected Users.

Posted: Thu Jun 26, 2014 1:12 pm
by Himanshu

But it would be decided on run-time.. that means we can't fix the devices here.


Push notification for selected Users.

Posted: Thu Jun 26, 2014 1:25 pm
by Himanshu

"DeviceId" which is saved for Notification, is combination of two Ids.
example:

"351710054123456;ab73s0d1ff654d10"
Here it seems that after semicolon, its device.uuid.
Can you please tell me what is first one.

Thanks, and please reply the above query too.


Push notification for selected Users.

Posted: Thu Jun 26, 2014 7:03 pm
by Evgene Karachevtsev

Hello,

1) No. this is the device ID, this is not a composite ID.

2) In the table Devices you can add any columns and to choose to whom send messages using any requests, including for these added columns. For details, please see http://devcenter.appery.io/documentat...


Push notification for selected Users.

Posted: Tue Jul 22, 2014 11:08 am
by Himanshu

Katya, it seems, we can't notify multiple devices in the filter..

{"deviceID":"354314054377574;f5ecdcb6df61cfa"} -- works
{"deviceID":"354314054377574;f5ecdcb6df61cfa,351710054996581;bc73a0d1cc654e10"} -- doesn't work.

Can you please tell me the way to send multiple deviceId with the filter.


Push notification for selected Users.

Posted: Tue Jul 22, 2014 11:08 am
by Himanshu

It seems, we can't notify multiple devices in the filter..

{"deviceID":"354314054377574;f5ecdcb6df61cfa"} -- works
{"deviceID":"354314054377574;f5ecdcb6df61cfa,351710054996581;bc73a0d1cc654e10"} -- doesn't work.

Can you please tell me the way to send multiple deviceId with the filter.


Push notification for selected Users.

Posted: Tue Jul 22, 2014 8:59 pm
by Evgene Karachevtsev

Hello Himanshu,

To filter push notifications you should use the same requests to database as usual requests to a database
http://devcenter.appery.io/documentat...
for example:

{"deviceID":{"$in":["354314054377574;f5ecdcb6df61cfa", "351710054996581;bc73a0d1cc654e10"]}}