Android WebView geolocation
Hi
I can't get geolocation working on Android 1.6 or 2.2.
The KitchenSink geolocation example doesn't work (location is currently unavailable) and I can't get navigator.geolocation working in a WebView either. Neither the success or error callback fires, but navigator.geolocation is indeed not undefined.
What am I doing wrong? I've tried the following guide but no joy: http://localadda.wordpress.com/2010/11/26/appcelerator-android-emulator-geolocation-issue-location-is-currently-unavailable/
Code sample:
if ( navigator.geolocation ) {
navigator.geolocation.getCurrentPosition( function() {
alert( 'awesome!' );
}, function() {
alert( 'not so awesome' );
});
}
3 Answers
-
Update: if I add the /tools/ folder to my PATH variable and keep ddms open I get a new error message in the KitchenSink example: "No providers are available".
http://img12.imageshack.us/img12/8301/screenshot20101130at112.png
-
Anyone?
-
I also get "No providers are available" when trying to get the current geolocation, however I'm using the 1.7 CI builds. Any fix for this? It used to work with 1.5…