Skip to content Skip to sidebar Skip to footer

Phonegap Geolocation Api Always Getting Error Code 3

I am using phonegap geolocation API in my phonegap android application.It always shows error code code 3,Timeout error.I am also try to change timeout variable value to increased,e

Solution 1:

Please make sure that you have <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> set in your android manifest.

Solution 2:

I made one mistake in config.xml.Now,I have added 

   <accessorigin="*"/><accessorigin="*://*.googleapis.com/*"subdomains="true" /><accessorigin="*://*.gstatic.com/*"subdomains="true" /><accessorigin="*://*.google.com/*"subdomains="true" /><accessorigin="*://*.googleusercontent.com/*"subdomains="true" />

in my config.xml file.googlemap geolocation showed successfully

Solution 3:

Make entry in app/res/xml/config.xml

Entry:

And in app/AndroidManifest.xml

Entry:

Also make sure that the enablehighAccuracy parameter is set to true.

Cheers!!

Post a Comment for "Phonegap Geolocation Api Always Getting Error Code 3"