Air 3.7 Flash Builder 4.6
I am trying to get the GeoLocation to work on an iPhone 5
This current Config is working under Android
On IPhone I keep getting Muted
Here is my app.xml
Can you let me know where i am going wrong..
Thanks for your time..
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/3.7">
<id>com.xxxx.xxxxxx.xxxxxxx</id>
<filename>Waypoints</filename>
<name><text xml:lang="en">Waypoints SE</text></name>
<versionNumber>2.2.0</versionNumber>
<versionLabel>Pre Release 2.24</versionLabel>
<autoOrients>false</autoOrients>
<fullScreen>true</fullScreen>
<visible>true</visible>
<softKeyboardBehavior>none</softKeyboardBehavior>
<….
….>
<iPhone>
<InfoAdditions>
<![CDATA[
<key>UIDeviceFamily</key>
<string>1</string>
<key>UIRequiredDeviceCapabilities</key>
<string>location-services</string>
<key>UIRequiredDeviceCapabilities</key>
<string>gps</string>
<key>UIBackgroundModes</key>
<string>location</string>
<key>UIApplicationExitsOnSuspend</key>
<true/>
]]>
</InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>
public function start_gps():void
{
geo = new Geolocation();
if (Geolocation.isSupported)
{
//Initialize the location sensor.
// So if a device has GPS and is not on
// the Device is give you the GPS Coord
// from the network carrier
// if the GPS is on the Polling is Much faster
// than coming from the network carrier.
if(! geo.muted)
{
// trace("GPS CLASS GPS is ENABLED " );
gpsStatus = 'ENABLED';
geo.addEventListener(GeolocationEvent.UPDATE, onLocationUpdate);
this.dispatchEvent(new Event("GPSON"));
this.change_refresh_rate(0);
}
else
{
// trace("GPS CLASS GPS is ENABLED " );
gpsStatus = 'MUTED';
dispatchEvent(new Event("GPSOFF"));
}
}
else
{
// trace("GPS CLASS GPS Hardware not Available " );
gpsStatus = 'NA';
this.dispatchEvent(new Event("GPS_ABSENT"));
}
}
