You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/18 10:36:39 UTC

[GitHub] precz edited a comment on issue #86: Add required=false to the uses-feature

precz edited a comment on issue #86: Add required=false to the uses-feature
URL: https://github.com/apache/cordova-plugin-geolocation/pull/86#issuecomment-455502004
 
 
   Hi, this somehow should be and option in plugin. For now you could add this line to `config.xml` in your project, under `widget`:
   ```
   <edit-config file="AndroidManifest.xml" target="/manifest/uses-feature[@android:name='android.hardware.location.gps']" mode="overwrite">
         <uses-feature android:name="android.hardware.location.gps" android:required="false"/>
   </edit-config>
   ```
   **It will work only for the first time, unfortunately. Every next run you need to remove duplicated key from `platforms/android/app/src/main/AndroidManifest.xml`.**

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org