dansterrett commented on issue #81: CB-11875 added android.hardware.location.gps uses-feature. URL: https://github.com/apache/cordova-plugin-geolocation/pull/81#issuecomment-466129585 For anyone who wants GPS to NOT be required, you can add this to `config.xml` (inside `<platform name="android">`): ``` <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/uses-feature[@android:name='android.hardware.location.gps']"> <uses-feature android:name="android.hardware.location.gps" android:required="false" /> </edit-config> ``` And make sure to add `xmlns:android="http://schemas.android.com/apk/res/android"` to the `<widget>` tag at the top of the file or you will get errors. When you build the project, `platforms/android/app/src/main/AndroidManifest.xml` will change from: ``` <uses-feature android:name="android.hardware.location.gps" /> ``` to ``` <uses-feature android:name="android.hardware.location.gps" android:required="false" /> ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
