Page 2 of 2

Geolocation & Push

Posted: Sat Mar 01, 2014 2:37 am
by Illya Stepanov

What device you are using for testing and Android version? We'll check this on a device.

And how you trace this errors?


Geolocation & Push

Posted: Sat Mar 01, 2014 10:19 am
by Rafael Martínez

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:

Image

The Geolocation set on the request:

Image

The service response:

Image


Geolocation & Push

Posted: Sat Mar 01, 2014 10:38 am
by Rafael Martínez

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

Image


Geolocation & Push

Posted: Sat Mar 01, 2014 11:36 am
by Rafael Martínez

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


Geolocation & Push

Posted: Sat Mar 01, 2014 12:13 pm
by Rafael Martínez

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.


Geolocation & Push

Posted: Sat Mar 01, 2014 12:27 pm
by Igor

Hello,

We need some time to check this. Someone will get back to you with update as soon as possible.


Geolocation & Push

Posted: Sat Mar 01, 2014 12:53 pm
by Rafael Martínez

Thank you Igor.

No one else is using this feature from the devices?, how do they do it ?


Geolocation & Push

Posted: Sat Mar 01, 2014 3:43 pm
by Rafael Martínez

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.


Geolocation & Push

Posted: Mon Mar 03, 2014 12:35 pm
by Nikita Smolyakov

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.


Geolocation & Push

Posted: Mon Mar 03, 2014 1:03 pm
by Rafael Martínez

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.