Rather than get the info from the device ID which can change on iOS is there a way to get the info.
I have tried to get it with a WHERE statement, as I have the device _id added to the users collection.
Rather than get the info from the device ID which can change on iOS is there a way to get the info.
I have tried to get it with a WHERE statement, as I have the device _id added to the users collection.
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/push/reg/",
"response":{
"code":"PNDR007",
"description":"Device id must be string"
That is the error, but I am not looking for the ID, but the collection _id ?
This is the where clause '{"_id ": "530f552be4707b0d8013fd1a"}'
Can you show how you are making the request?
I have tried afew ways:
https://api.appery.io/rest/push/reg/ + Where clause as above
https://api.appery.io/rest/1/db/devic...
https://api.appery.io/rest/1/db/devices + Where clause as above
None worked
Can you post a screenshot of settings and request parameters?
This error is about the type of data.
They are all different, as I have shown above. Which do you want a screenshot of ? Data_type is json, as is content_type. Each are different though!
If you know what the issue is based on the error, can you show me how and what I need to do, so I can retrieve a record based on the devices _id
Sorry for misunderstanding -- I'm not sure you can do it this way, you should use 'filter' parameter: http://docs.appery.io/documentation/b...