I’m using the plugin org.apache.cordova.geolocation
This works fine on ios, but for Android it’s not firing. Am I correct that I need to set permissions like stated here: http://cordova.apache.org/docs/en/2.5.0/cordova_geolocation_geolocation.md.html
app/res/xml/config.xml <plugin name="Geolocation" value="org.apache.cordova.GeoBroker" /> app/AndroidManifest.xml <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
I was wondering if I need to edit the AndroidManifest.xml and config.xml manually in the build folder?
Can I also set these permission in my ionic folder in /config.xml?
I’m confused where I can or need to set these options. Thanks for helping out!
I’m asking this because I don’t put the platforms/android folders in version control (since they are changing on every build). On the other hand I’d like to put these permission settings under version control so that it works on another dev machine as well.
update: I have set the options in the files mentioned above, but geolocation is not firing on android. No idea what’s wrong. Can I check logs somehow on the device itself?