Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

geolocation service returning error

Hello!

Sorry, but you didn't answer the question if you have changed permissions in App Settings--Android Permissions tab? It is important because edited permissions might cause this problem.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

geolocation service returning error

I did change the permissions, but not the permissions about location:

ACCESS_COARSE_LOCATION = true
ACCESS_FINE_LOCATION =true
ACCESS_LOCATION_EXTRA_COMMANDS = true

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

geolocation service returning error

Just to test please try to set permissions to default ones and see if it helps. Please let us know result.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

geolocation service returning error

that didn't help

It doesn't work in de tester-app either (which has default permissions)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

geolocation service returning error

Please clarify what device and Android version you use? Also share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and post it's name.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

geolocation service returning error

the app is shared

I use a Galaxy Nexus with android 4.2.1, but the same behaviour is observed on other phones.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

geolocation service returning error

name of the app is AIDAPP

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

geolocation service returning error

Thank you! We need to test it. Testing might take some time.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

geolocation service returning error

Hi Sjef.

Here is an description of input parameters(described in this document http://docs.phonegap.com/en/3.3.0/cor... ):

precode

enableHighAccuracy: Provides a hint that the application needs the best possible results. By default, the device attempts to retrieve a Position using network-based methods. Setting this property to true tells the framework to use more accurate methods, such as satellite positioning. (Boolean)

timeout: The maximum length of time (milliseconds) that is allowed to pass from the call to geolocation.getCurrentPosition or geolocation.watchPosition until the corresponding geolocationSuccess callback executes. If the geolocationSuccess callback is not invoked within this time, the geolocationError callback is passed a PositionError.TIMEOUT error code. (Note that when used in conjunction with geolocation.watchPosition, the geolocationError callback could be called on an interval every timeout milliseconds!) (Number)

maximumAge: Accept a cached position whose age is no greater than the specified time in milliseconds. (Number)

/code/pre

It's needed some time to get information about current location. (see info about cold and hot start).

Currently in your app you have default timeout = 500. http://prntscr.com/3le3ok/direct

So please increase this with value 54000 (15min) and try again.

Regards.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

geolocation service returning error

even increasing it more (120,000 milliseconds) did not work.

Geolocalization does work on iOS

Return to “Issues”