I am using parse to push data to a set of android devices which are near a particular geopoint. I have successfully created a geopoint from the device into the installationData. I want to push data to a particular channel and filter by those devices near the geopoint. But when i push this data from REST API i get 400 Bad Request error:
{"where":{"channels":"NewReq","user":{"$inQuery":{"location":{"$nearSphere":{"__type":"GeoPoint","latitude":30.0,"longitude":-20.0},"$maxDistanceInMiles":1.0}}}},"data":{"custid":118,"fromadd":"uuhuh","orderid":"BT8224847","type":"NewTowRequests","paymenttype":"Cash","custdevid":"APA91bEgSVTkS4M4YXJbIlRUx_8LfPMnnpvWKUEobHpO6bVZ-086n2uRalyeql98oy9ifyoUXARJuki1SEYIBCuHHIJXe8Jn9YLbQRQ3VdJqGEaDXFxRDys","fromlat":30.0,"fromlon":-20.0,"rating":0.0,"ordertype":"SCH","sch_date":"25/08/2015 16:00","is_sch":"True","status":"PEN","is_rec":"False","orderdate":"13/08/2015 07:38"}}
Note that i have not created any users , isn't there a method to send it to the devices near a geopoint without creating the users?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire