ios8 changes geolocation permissions

6 posts, 0 answers
  1. Denise
    Denise avatar
    13 posts
    Member since:
    Oct 2013

    Posted 26 Nov 2014 Link to this post

    In IOS8, an app can request permission to use a service (like Geolocation) just when the app is in the foreground, or also when the app is in the background.

    Currently when I install my app on IOS8 device, it asks for permissions Geolocation even when the app is in the background.  I assume that is default behavior for the Cordova plugin?

    My app doesn't use or need the Geolocation service in the background.  Is there some way to change the configuration so that it doesn't request this permission?   I think it would scare off users.
  2. Denise
    Denise avatar
    13 posts
    Member since:
    Oct 2013

    Posted 26 Nov 2014 Link to this post

    I should add that in the configuration options for ios the "background mode" is set to "off" for all services.  (I think it is "off" --- the on/off coloration is not clear.  screenshot attached.)
  3. Denise
    Denise avatar
    13 posts
    Member since:
    Oct 2013

    Posted 26 Nov 2014 in reply to Denise Link to this post

    Another update:  I see that the Cordova plugin version in appbuilder is 0.3.8.  In github it appears that version 0.3.10 has fixed this issue and several others relating to IOS & geolocation.

    Can I change the version of a plugin that is used in appbuilder?
    Or should I turn off the "core plugin" feature and add the newer plugin as a custom plugin?
  4. Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 01 Dec 2014 Link to this post

    Hi Denise,

    When you need to use a different version of a core plugin than the one currently available in AppBuilder, you should indeed turn off the core plugin and import the newer version as a custom plugin. Let us know if you encounter any problems with this.

    Regards,
    Tsvetina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  5. Nima
    Nima avatar
    3 posts
    Member since:
    Feb 2014

    Posted 20 Jan 2015 in reply to Tsvetina Link to this post

    Will you be including a new version of the core location plugin in your next AppBuilder version?
  6. Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 21 Jan 2015 Link to this post

    Hi Nima,

    The new version of the Geolocation plugin is already available in AppBuilder. You first need to make sure that you have updated the target Cordova version to 3.7. To do this:

    1) Right-click the project name and choose Properties.
    2) Under General, open the Cordova version dropdown and select 3.7.0.
    3) Save and close the properties window.

    Now, if you open Properties again, and navigate to Plugins, you will see that the Geolocation plugin version is 0.3.11 (instead of the older 0.3.8).

    Regards,
    Tsvetina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top