android - ACCESS_FINE_LOCATION permissions update with uses-feature in Ionic mobile application -


i received notification google asking update way declare use of native geolocation in-app.

in ionic (v1), cordova-plugin-geolocation 2.3.0 "geolocation" installed. line declared in androidmanifest.xml :

<uses-permission android:name="android.permission.access_fine_location" /> 

google telling use instead :

<uses-permission android:name="android.permission.access_fine_location" /> <uses-feature android:name="android.hardware.location.gps" android:required="false"> 
  • is there clean way insert androidmanifest.xml ?
  • should hook ?
  • should wait cordova-plugin-geolocation update plugin in order satisfy google recommandations ?

you can specify android manifest properties config.xml file this:

<platform name="android"> <config-file target="androidmanifest.xml"> <uses-permission android:name="android.permission.access_fine_location" /> <uses-feature android:name="android.hardware.location.gps" android:required="false"> </config-file> </platform> 

also if getting unbound prefix's error, put xmlns:android="http://schemas.android.com/apk/res/android" @ top of config.xml file

for example:

<widget xmlns     = "http://www.w3.org/ns/widgets"         xmlns:gap = "http://phonegap.com/ns/1.0"         xmlns:android   = "http://schemas.android.com/apk/res/android"         id        = "com.akis.android"         version   = "0.1" 

Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -