1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Vote Rating
    0
    manvinder is on a distinguished road

      0  

    Default File path in geolocation permission dialog

    File path in geolocation permission dialog


    I am using have to use Geo-location in my project for this I am using phonegap/cordova navigator.geolocation.getCurrentPosition function(). The code works fine accept that it displays a dialog box stating "/var/mobile/Applications/...../appname.app/www/index.html would Like To Use Your Current Location". for first two launches of application after installation. At the first run the app also displays a dialog stating "<AppName> Would Like To Access Your Current Location" which is normal.

    Can Someone tell me why this unfriendly message is coming and how can I avoid this. I also tried "Ext.util.geolocation", "Ext.device.geolocation" of sencha but everytime I am getting the same result. I am using cordova 3.0 in my project.

    I also followed this but solution provided there also didn't worked for me.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Sounds like you need to add the permission to your cordova/phonegap config.xml
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Vote Rating
    0
    manvinder is on a distinguished road

      0  

    Default


    I have already set the permission on config.xml, like this...
    Code:
    <feature name="Geolocation">
            <param name="ios-package" value="CDVLocation" />
        </feature>