When I test my app with chrome browser or the phonegap app. The HTML5 geolocation I'm using works just fine. (show a map view with device location)
When I sign my apk with phonegap build and test the apk on a device I'm getting a Location error.
I'm trying to add permission for geolocation, but I can't make it work.
Is HTML5 geolocation the problem or is it a permission issue?
I'm not really sure how to add permissions correctly with android 6 and above.
I've read a lot of tutorials/posts about adding maps to phonegap. But they are all different and for older versions of maps/android.
Did you add cordova-plugin-geolocation to your app?
cordova plugin add cordova-plugin-geolocation
Plugin "cordova-plugin-geolocation" already installed on android.
Plugin "cordova-plugin-geolocation" already installed on browser.
ok I've got it working, really have no idea how, but it was something with the config.xml file.