Hi,
Ive got a specific problem in my project.
I want to use a native GPS on Android. Ive added a geolocation module to my project with
cordova plugins add org.apache.cordova.geolocation
Than added to AndroidManifest.xml this code:
<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" />
Than added code to platforms/android/res/xml/config.xml
<feature name="Geolocation">
<param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" />
</feature>
Than Im running a code with
ionic run android
And the file platforms/android/res/xml/config.xml is overwriten and my added code:
<feature name="Geolocation">
<param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" />
</feature>
is removed from this file. Finally I cannot use native GPS and it still uses a webview geolocation.
Could you help me to resolve this problem?