Geolocation iPhone
Hi,
I'm trying to get the location using this code:
import flash.sensors.Geolocation;
import flash.events.GeolocationEvent;
if (Geolocation.isSupported)
{
var locale:Geolocation = new Geolocation();
if(locale.muted){
txt1.text = "Geolocation is muted";
}
locale.addEventListener(GeolocationEvent.UPDATE, onlocationHandler);
locale.setRequestedUpdateInterval(2000);
}
else
{
txt1.text = "Geolocation is not Supported";
}
When I run this on my iPhone 4g, I always get "Geolocation is muted"
I think that should be a message asking me to approve the use of GPS, but I don't get this message
Does anyone know why this happens?