I was wondering if there was a way to add something to the config.xml file so that no specific permissions are requested by when my app installs on an android phone. Just now it asks for location, network, personal information, storage, phone calls and hardware controls. None of which are really required.
Thanks!
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Have you tried the last section from the docs?
https://build.phonegap.com/docs/confi...
Hardeep Shoker -
-
It is odd that specifying no features results in all features being requested.
-
-
It is a little counter-intuitive, but our thinking is that if the features are not specified, we go with the PhoneGap defaults (access to all PhoneGap APIs).
I've patched this now - add the following tag to your config.xml
<preference name="permissions" value="none"/>
and the only permission will be INTERNET - this is required for PhoneGap to run at all, I believe.- view 7 more comments
-
-
-
-
-
-
-
Hi there. I encounter the same issue described above:
Once I install the application on my phone, it requests for "Storage", "Internet" and "Phone calls" permissions.
I require that it only requests "Internet".
Anything on that ? -
-
I have <preference name="permissions" value="none"/> in config.xml but when I pull down the pkg on my Android devices it says the app has requested all permissions. I've removed the app completely from my device, also re-pulled the git from github and still same thing happens. Is this a bug in processing the config.xml in version 2.7.0?
-
-
-
-
Is it possible to create standalone app with PhoneGap Build without any permissions? It stores all info locally.
Because it not uses SD, Phone or network permissions. -
-
You can disable all permissions except INTERNET.
Internet is required for the PhoneGap framework.
Hardeep Shoker -
-
Thanks for reply, but which specific feature in PhoneGap needs internet? For what reason? Is it only on Android needed?
-
Also it is strange, when I test app on Android emulator, it asks for permissions: Storage, Network communication, Phone Calls.
When I upload app to android market, it asks for One permission:
Permissions: android.permission.INTERNET
Features: android.hardware.screen.portrait, android.hardware.touchscreen
Why it is so? -
-
-
-
-
PhoneGap-Android communicates between the JavaScript code and the native code using a callback server (a web server running on the device).
Without the INTERNET permission, the communication cannot be performed. -
-
Hi,
Im actually using phonegap as a packaging/build platform, without using it for callbacks to the phone OS (ie no phonegap.js is included from my html).
Is there any way I can get off the INTERNET permission?
Thanks! -
-
There is no way to do this with PhoneGap Build, currently.
Even if you don't use phonegap.js, the PhoneGap native library still sets up a callback server - you would need to edit the native library to disable this to make it work without the INTERNET permission. -
-
I resolved it by comenting the
tags in the AndroidManifest.xml. Only the ones my app is not using.<uses-permissions />
The
did'nt worked for me.< preference name='permissions' value='none' />
I'm using Cordova 2.5.0 -
-
Stating...
<preference name="permissions" value="none" />
...inside config.xml isn't working for me either (compiling using build.phonegap.com). When the app is installed onto Android (Nexus7) it requests every permission.
I have hydration turned off (as I understand this can get in the way).
What gives? -
-
To answer my own question... the problem seems to be related to other elements within config.xml. I had the following in my config.xml...
<feature id="blackberry.invoke" />
<feature id="blackberry.invoke.BrowserArguments" />
<feature id="blackberry.identity" />
Removing this made the permissions stuff start working. My app no longer asks for any permissions beyond network access.
So now I just need to work out how to use those blackberry features without inadvertently ending up needing all permissions. -
Loading Profile...


EMPLOYEE




