Eric Eric - 9 days ago 6
iOS Question

Cordova iOS location message

I use the plugin cordova-plugin-geolocation. My only issue is that the message prompt to allow location looks like this:


/var/container/bundle/application/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/my_project/www/index.html
Would like to use your location.


Is there anyway to have something a little bit sexier, like


my_project would like to use your location


Cheers.

Added some code, for the non believers

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady(){

navigator.geolocation.getCurrentPosition(onLocationSuccess, onLocationError, {maximumAge:3000, timeout:2000, enableHighAccuracy:true});

function onLocationSuccess(){

}

function onLocationError(){

}
}

Answer

Thanks Kerri for the help. As I mentioned in the comments:

Yup uninstalling and reinstalling the plugin fixed it, I don't get the warning nor native code, thanks for your help, closing this question