3 Replies Latest reply on Apr 30, 2017 3:04 PM by jmiller46

    Android geolocation privacy notification - always present?

    jmiller46 Level 1



      I've got an app that does not use geolocation in any way. At install time, however, the user is always notified that the app will have access to "approximate" and "precise location".


      I've removed the geolocation plugin, but that doesn't help. I'd really rather not give the user a reason to be suspicious of my app. My config.xml is:



      <?xml version='1.0' encoding='utf-8'?>

      <widget id="com.foo.bar" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">





          <author email="support@foo.com" href="https://www.foo.com">



          <content src="index.html" />

          <preference name="DisallowOverscroll" value="true" />

          <preference name="android-minSdkVersion" value="14" />

          <preference name="EnableViewportScale" value="true" />

          <preference name="CameraUsesGeolocation" value="false" />



          <plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1" />

          <plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />

          <plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-console" source="npm" spec="~1.0.2" />

          <plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />

          <plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />

          <plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-file" source="npm" spec="~4.1.1" />

          <plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0" />

          <plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3" />

          <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" />

          <plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />

          <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />

          <plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />

          <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2" />

          <plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />

          <!--platform name="android">

              <icon src="www/res/icon/android/icon.png" />

              <splash src="www/res/screen/android/icon.png" />

          </platform -->



          <platform name="android">


                  ldpi    : 36x36 px

                  mdpi    : 48x48 px

                  hdpi    : 72x72 px

                  xhdpi   : 96x96 px

                  xxhdpi  : 144x144 px

                  xxxhdpi : 192x192 px


              <icon src="res/icon/android/ldpi.png" density="ldpi" />

              <icon src="res/icon/android/mdpi.png" density="mdpi" />

              <icon src="res/icon/android/hdpi.png" density="hdpi" />

              <icon src="res/icon/android/xhdpi.png" density="xhdpi" />

              <icon src="res/icon/android/xxhdpi.png" density="xxhdpi" />

              <icon src="res/icon/android/xxxhdpi.png" density="xxxhdpi" />






          <platform name="ios">

              <icon  src="www/res/icon/ios/icon.png"  />


              <splash src="www/res/screen/ios/icon.png" />



          <access origin="*" />

          <allow-intent href="http://*/*" />

          <allow-intent href="https://*/*" / >

          <!-- allow-intent href="tel:*" / -->

          <!-- allow-intent href="sms:*" / -->

          <allow-intent href="mailto:*" />

          <!--allow-intent href="geo:*" / -->

          <platform name="android">

              <allow-intent href="market:*" />


          <platform name="ios">

              <allow-intent href="itms:*" />

              <allow-intent href="itms-apps:*" />




        • 1. Re: Android geolocation privacy notification - always present?
          kerrishotts Adobe Employee

          I would start by removing all plugins from config.xml that you don't need. If the problem persists, that narrows down the number of potential plugins to investigate.

          • 2. Re: Android geolocation privacy notification - always present?
            stoffer1 Level 1

            I have the same problem and I use all of these plugins:


            <plugin name="cordova-plugin-device" source="npm"/>

            <plugin name="cordova-plugin-device-orientation" source="npm"/>

            <plugin name="cordova-plugin-file" source="npm"/>

            <plugin name="cordova-plugin-filepath" source="npm"/>

            <plugin name="cordova-plugin-globalization" source="npm"/>

            <plugin name="cordova-plugin-inappbrowser" source="npm"/>

            <plugin name="cordova-plugin-network-information" source="npm"/>

            <plugin name="cordova-plugin-dialogs" source="npm"/>

            <plugin name="cordova-plugin-whitelist" source="npm"/>

            <plugin name="cordova-plugin-file-transfer" source="npm" />

            <plugin name="cordova-plugin-camera" source="npm">

              <variable name="CAMERA_USAGE_DESCRIPTION" value="App would like to access the camera." />

              <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="App would like to access the library." />

              <variable name="MICROPHONE_USAGE_DESCRIPTION" value="App would like to access the microphone." />



            Any idea which one required GeoLocation access?



            • 3. Re: Android geolocation privacy notification - always present?
              jmiller46 Level 1

              Thanks for the suggestion. It turns out, in my case, the culprit is 


              <plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />


              Upon reading the documentation for the plugin, I see that it utilizes the device compass. So, there probably no way around this.