Eric Eric - 1 year ago 104
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:

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


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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download