Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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?

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

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

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

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

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

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

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Geolocation & Push

Hello,

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

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

Thank you Igor.

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

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

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.

Nikita Smolyakov
Posts: 0
Joined: Mon Mar 03, 2014 12:35 pm

Geolocation & Push

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.

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Geolocation & Push

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.

Return to “Issues”