Page 2 of 2

Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Fri Apr 25, 2014 9:06 pm
by Kateryna Grynko

We'll need some time to test it.


Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Sat Apr 26, 2014 7:02 am
by aggregate

Thank you, please let me know how I can assist.


Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Sat Apr 26, 2014 1:01 pm
by aggregate

Okay, I think I have it figured out and we can close this issue. I had the parameter in the filter as "param" instead of as the specific filter element.

I think this can be closed, but I also see where I got confused. It might help if the service threw an error saying that the parameter in the request was not on the table - essentially I always got a null response because the column I was trying to query did not exist:

http://docs.appery.io/documentation/b...

Filter

Parameter used for filtering devices.You can specify any amount of fields. All fields are chained with && (logical AND). So you can use it to narrow the list of the devices.

param – any field of the _devices collection;criteria – value of the param field.


Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Sat Apr 26, 2014 1:02 pm
by aggregate

Thank you all for your guidance, screenshots, and time.


Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Sat Apr 26, 2014 1:08 pm
by aggregate

One other point. It seems that the filter cannot be null or you get no devices found.


Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Sat Apr 26, 2014 1:15 pm
by Alena Prykhodko

Glad it's working. Thank you for update.


Push notification query returns 0 devices when made from REST, from console returns 1 device with same query

Posted: Mon Jul 20, 2020 6:56 pm
by aggregate

payload"":{ ""badge"":null