How to I turn off geolocation when using Phonegap Build

0 favourites
  • 4 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • 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 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:

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns="" xmlns:gap="" id="se.onemuppet.draw" version="1.0.0">
      <author href="" email="">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">
      <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
      <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" />
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here is the same question on the phonegap community support site: ... topic_link

    Still no solution <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

  • did anyone ever find a solution to this?

  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)