Hi,
I have this strange problem. My map view was working just fine until I upgraded to 3.3.0 and replaced the map view with the map module. Map is on the screen but because Ti.Geolocation.purpose does not execute, I cannot focus on the users location.
I am working on Ti Alloy, everything updated to latest stable version.
MapView.js
Ti.API.info ('requesting location access'); Ti.Geolocation.purpose = 'Need location'; Ti.API.info ('requested access'); var lat; var lon; if (Ti.Geolocation.getLocationServicesAuthorization() == 3) { Ti.Geolocation.getCurrentPosition ( function (e) { lat = e.coords.latitude; lon = e.coords.longitude; $.v_map.region = { latitude:lat, longitude:lon, latitudeDelta:0.01, longitudeDelta:0.01 }; }); } ~~~ And MapView.xml
Both "Ti.API.info" lines execute when I open the mapview but I do not get the pop-up requesting access to location services. I have tried adding require (ti.map)
at the start of the JS but to no avail.
I have tried this on simulator and iPhone 4S device, both resetting them to factory state in case if I denied the request accidentally. My application also does not show up in "Settings > Privacy > Location" menu. I am quite sure I got this working before the 3.3.0 update and my application was shown as allowed in the Privacy menu.
Any help appreciated. Thanks.