26 Feb 2014 10:23 PM #1
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.
28 Feb 2014 12:23 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Sounds like you need to add the permission to your cordova/phonegap config.xmlMitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
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 Mar 2014 7:12 PM #3
I have already set the permission on config.xml, like this...
<feature name="Geolocation"> <param name="ios-package" value="CDVLocation" /> </feature>