How to I turn off geolocation when using Phonegap Build

Get help using Construct 2

Post » Wed Jan 07, 2015 10:03 pm

Hi,
When I export my app using the cordova exporter, I only select the "Hide status bar" option. NOT the geolocation option.
Then I upload my app to build.phonegap.com and download the ipa-file, then I install the app on my iPad and iPhone and when I open the app it pops up this alert:
"Allow <App Name> to access your location even when you are not using the app?"

I'm trying to get the app out on app store and Apple is asking why the app need the location permission and the truth is I just can't figure out how to get rid of it, any help is appreciated.

This is my config.xml file, I've tried adding some extra things to remove the permission alter but without any luck so far:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="se.onemuppet.draw" version="1.0.0">

  <name>myDraw</name>
  <description>Drawing</description>
  <author href="http://onemuppet.se/" email="[email protected]">David Borgenvik</author>

  <icon src="icon-128.png" width="128" height="128" />
  <icon src="icon-256.png" width="256" height="256" gap:role="default" />

  <preference name="permissions" value="none"/>
  <preference name="android-targetSdkVersion" value="21" />

  <preference name="orientation" value="landscape" />
  <preference name="fullscreen" value="true" />
  <gap:config-file platform="ios" parent="UIStatusBarHidden">
    <true/>
  </gap:config-file>
  <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
    <false/>
  </gap:config-file>

  <preference name="deployment-target" value="8.0" />
  <preference name="android-minSdkVersion" value="21" />
  <preference name="target-device" value="universal" />
  <preference name="EnableLocation" value="false" />

  <!-- Optional splash screen image, e.g.: -->

  <!-- iPhone / iPod Touch  -->
  <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />
  <icon src="icon-60.png" gap:platform="ios" width="60" height="60" />
  <icon src="icon-120.png" gap:platform="ios" width="120" height="120" />
  <icon src="icon-114.png" gap:platform="ios" width="114" height="114" />

  <!-- iPad -->
  <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />
  <icon src="icon-144.png" gap:platform="ios" width="144" height="144" />
  <icon src="icon-76.png" gap:platform="ios" width="76" height="76" />
  <icon src="icon-152.png" gap:platform="ios" width="152" height="152" />

  <!-- Settings Icon -->
  <icon src="icon-29.png" gap:platform="ios" width="29" height="29" />
  <icon src="icon-58.png" gap:platform="ios" width="58" height="58" />
  <icon src="icon-50.png" gap:platform="ios" width="50" height="50" />
  <icon src="icon-100.png" gap:platform="ios" width="100" height="100" />

  <!-- Spotlight Icon -->
  <icon src="icon-40.png" gap:platform="ios" width="40" height="40" />
  <icon src="icon-80.png" gap:platform="ios" width="80" height="80" />

  <!-- Optional splash screen image, e.g.: -->
  <gap:splash src="splash480.png" gap:platform="ios" width="480" height="320" />
  <gap:splash src="splash320x480.png" gap:platform="ios" width="320" height="480" />

  <gap:splash src="splash960.png" gap:platform="ios" width="960" height="640" />
  <gap:splash src="splash640x960.png" gap:platform="ios" width="640" height="960" />

  <gap:splash src="splash_iphone5.png" gap:platform="ios" width="1136" height="640" />
  <gap:splash src="splash640x1136.png" gap:platform="ios" width="640" height="1136" />

  <gap:splash src="splash.png" gap:platform="ios" width="1024" height="768" />
  <gap:splash src="splash768x1024.png" gap:platform="ios" width="768" height="1024" />

  <gap:splash src="splash568.png" gap:platform="ios" width="568" height="320" />
  <gap:splash src="splash320.png" gap:platform="ios" width="320" height="568" />

  <gap:splash src="splash1334.png" gap:platform="ios" width="1334" height="750" />
  <gap:splash src="splash750x1334.png" gap:platform="ios" width="750" height="1334" />

  <gap:splash src="splash2208.png" gap:platform="ios" width="2208" height="1242" />
  <gap:splash src="splash1242x2208.png" gap:platform="ios" width="1242" height="2208" />

  <gap:splash src="splash2048x1536.png" gap:platform="ios" width="2048" height="1536" />
  <gap:splash src="splash1536x2048.png" gap:platform="ios" width="1536" height="2048" />


</widget>
B
39
S
9
G
4
Posts: 163
Reputation: 6,516

Post » Mon Jan 12, 2015 6:35 pm

Here is the same question on the phonegap community support site:
http://community.phonegap.com/nitobi/to ... topic_link

Still no solution :(
B
39
S
9
G
4
Posts: 163
Reputation: 6,516

Post » Mon Feb 02, 2015 4:20 am

@OneMuppet did anyone ever find a solution to this?
B
10
S
3
Posts: 12
Reputation: 695

Post » Mon Feb 02, 2015 6:31 pm

I've switched to using the cordova CLI locally on my computer instead and now everything works like it should. I'm using the same config.xml file and the same js-files index.html ect
B
39
S
9
G
4
Posts: 163
Reputation: 6,516


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 8 guests