Note that there are some explanatory texts on larger screens.

plurals
  1. POconfig.xml formatting problem
    text
    copied!<p>I am trying to prevent an android application from requesting lots of pemissions and I am developing using phonegap. I asked a question here:</p> <p><a href="http://community.phonegap.com/nitobi/topics/change_android_permissions_none_required" rel="nofollow">http://community.phonegap.com/nitobi/topics/change_android_permissions_none_required</a></p> <p>The advice I was given was to add this line to my config.xml file:</p> <pre><code>&lt;preference name="permissions" value="none"/&gt; </code></pre> <p>I have done this but the app still requests 7 permissions at install. Below is my config.xml file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;widget xmlns = "" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.sapps.reftorange" version = "1.0.0"&gt; &lt;name&gt;Test&lt;/name&gt; &lt;gap:platforms&gt; &lt;gap:platform name="android" minVersion="1.0" /&gt; &lt;/gap:platforms&gt; &lt;icon src="icon.png" gap:role="default" /&gt; &lt;preference name="permissions" value="none"/&gt; &lt;/widget&gt; </code></pre> <p>Is there something I'm missing with this or do you think my problem lies elsewhere?</p> <p>EDIT: Second line now reads</p> <pre><code> &lt;widget xmlns = "http://www.w3.org/ns/widgets" </code></pre> <p>And the app now requests 3 permissons, these being phone calls, network and storage. It would be my guess that the</p> <pre><code> &lt;preference name="permissions" value="none"/&gt; </code></pre> <p>tag doesn't actually remove all permission requests.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload