Phonegap Android permissions, config.xml and plugins -


i have phonegap app i'm developing , testing android. problem is, when publish device, android manifest full of permission requests did not ask for.

i have figured out phonegap plugins (see this docs page under "add features") have it. if install plugin camera, phonegap automatically add related permission androidmanifest. i've uninstalled phonegap plugins didn't need, , permissions went away.

so far good.

trouble is, android manifest (and file called "android.json" in project's /plugins directory) still contain number of unwanted features:

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

since app budgeting, "record video" permission suggest sane user evil sneaky app trying destroy privacy.

how rid of these feature requests? tried...

  1. adding <preference name="permissions" value="none" /> config.xml.
  2. uninstalling related phonegap plugins. uninstalled plugin audiohandler seems have come preinstalled when created project.

of course can remove stuff manually androidmanifest.xml before publish final version. more structural solution, since use "cordova run android" test on device, , overwrites changes androidmanifest.xml , android.json.

are sure removed plugins? (use phonegap plugin list) see plugins there are.

i not sure whether there difference, use

phonegap run android 

in stead of

cordova run android 

according docs run command both clean , build... cleaning should done.. (actually use -v command debug info)

i had lot of troubles way, see: upgrade phonegap 3.3.0

and starting empty platforms folder 1 of tries.... should sure rebuild manifest file....

edit 29-1-2014

by way, best explanation of cli , phonegap 3.x issues can found here: http://devgirl.org/2013/09/05/phonegap-3-0-stuff-you-should-know/


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -