Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Push notification for selected Users.

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.

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

Push notification for selected Users.

Hi Himanshu,

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

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Push notification for selected Users.

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

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Push notification for selected Users.

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

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

Push notification for selected Users.

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

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Push notification for selected Users.

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.

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Push notification for selected Users.

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.

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

Push notification for selected Users.

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"]}}

Return to “Issues”