too many android permissions question

  • 1
  • Question
  • Updated 4 years ago
Hi all;
my question is regarding android permissions. it seems like my app requires way more permissions than needed (see list in attached image)
my config.xml list is as follows:
-cordova-plugin-whitelist
-cordova-plugin-device
-cordova-plugin-vibration
-cordova-plugin-dialogs
-cordova-plugin-splashscreen
-cordova-plugin-statusbar
-phonegap-plugin-push
as you can see in the attached image, my app declares that it needs read/write call log, gps, voice recording, contacts access, etc but I dont need any of that.
why is this required from my app (built with PGB & cli 6). and how can I remove these...
thanks for your help!!!

Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Add a preference for 'permissions' with value 'none'.
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
thanks.
would this remove all permissions?
what If I wanted only GPS for example?
what should I do then?
thanks!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Just include that preference and specify the plugins that you want
Photo of jcesarmobile

jcesarmobile

  • 283 Posts
  • 40 Reply Likes
Check the plugins section of your app on the phonegap build website, make sure it shows the same plugins you told us
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
jcesarmobile
it shows the same...
i used to have a feature tag for network and file but removed it per PGB latest blog...
Photo of jcesarmobile

jcesarmobile

  • 283 Posts
  • 40 Reply Likes
can you post your config.xml?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@jcesarmobile As Petra suggested, <preference name="permissions" value="none"/> will solved the issue for PGB. Thanks for lending a hand.
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
here you go:
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Now, where is that permissions preference?
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
hi petra, r u referring to your suggestion?
I haven't put it yet...
thanks
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Yes, of course.
If you don't include that preference, PGB will add a set of default permissions.
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
will try it now
thanks
Photo of gkatz

gkatz

  • 186 Posts
  • 5 Reply Likes
yep
did the trick
thanks