- This topic has 10 replies, 3 voices, and was last updated 10 years, 9 months ago by Brandon.
-
AuthorPosts
-
BrandonMemberWondering if anyone else has seen this error message using the geolocation
Alert, code 2: The last location provider was disabled.
This happening on a Samsung Galaxy S4 , android version 4.3
and a Android LG G2It seems to work fine on an HTC and iPhone 4s
support-michaelKeymasterCan you share an example project or snippet? My 1st thought is the OS is not allowing the app access to the location sensors.
Did you enable the geolocation permission when building your android app? I assume yes since you have partial success on some devices.
BrandonMemberYes, I have enabled it in permissions. It is a basic getCurrentPosition call with the Phonegap API, nothing special.
On the same device when they turn on wireless location service the message went away, but it would not return the location. They even made sure GPS and wireless was on.
support-octavioMemberHi Brandon,
We are seeing a gelocation issue on android builds, we are investigating and will follow up as soon as I have an status update.
BrandonMemberOctavio,
Thanks.
support-octavioMemberHi Brandon,
Can you share if other apps that use geolocation (including native browser) work? Also, please post a sample project and a screenshot of the error message you are getting since we haven’t been able to see it yet.
BrandonMemberYes, he tried several other browser ones and they were able to get his location quickly.
I have asked him to see if he can get a screen shot. I will email it once I do (not able to post files here).
BrandonMember@Octavio
Hopefully you got my screen shot I sent in to you via email.
I have had no luck with various in code settings to resolve this.
BrandonMemberI am marking this as solved, not closed, as there still seems to be a problem.
I did manage to get the app working, but the problem exists with the API.
support-octavioMemberHi Brandon,
Could you elaborate on you resolution, e.g., provide options or something else?
BrandonMemberI actually used the map widget to get and show the current location. That, I believe somehow, allowed the PhoneGap API to use the location or access the location.
-
AuthorPosts