Geolocation & Push
What device you are using for testing and Android version? We'll check this on a device.
And how you trace this errors?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
What device you are using for testing and Android version? We'll check this on a device.
And how you trace this errors?
Sony Ericcson LT18i
We trace the error using the code:
Code: Select all
var vars = jqXHR.responseText.split(";");
alert(vars[0]); The deviceId set on the request of the service:
The Geolocation set on the request:
The service response:
I think the problem is that Appery.IO don't support dynamic URL in the UpdateDevice Service:
, then, it is necessary harcoded the URL for every device and if we have 10.000 devices we need 10.000 services, one service for every device.
We are tested with 3 devices and works fine, but in a production environment this is not workable.....
From a server using curl:
curl -X PUT -H "Content-Type: application/json" -H "X-Appery-App-Id: XXXXXXXXXXXXX" -d '{"Geolocation": [-3,80]}' https://api.appery.io/rest/push/reg/3...
works fine.
From the device we get always ERROR PNDU246 "GeoPoint should be an array [latitude, longitude]..."
This is a bug of Appery !!!, we are trace the Javascript code of appery.js and we have discovered that the function changes [ -4, 80] to "[ -4, 80]" (with quotation marks) and this is the cause of the error.
We need a solution for this behaviour, or an alternative as soon as posible.
Thanks in advance.
Hello,
We need some time to check this. Someone will get back to you with update as soon as possible.
Thank you Igor.
No one else is using this feature from the devices?, how do they do it ?
We have created a PHP service on our backend server to update the geopoint field. We invoke this service from the devices and our server call Appery.IO using curl_exec.
It is a temporary solution while awaiting the update of this question.
Hello!
It works fine for me... Could you share the app with us (a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a), so we can check it. Also specify the steps of reproducing the problem and device's OS version.
Sorry, but this code is not longer available in our project. We are using a backend service in our server and updating the geopoint field in Appery.IO using curl_exec from this server.
For the next project we'll be back to try to do this directly from the device.