Hi,
I have developed ann location based app that uses Forms.Maps.
I am doing the Location manager and location updating using a Dependency class implementation (I am not using the Xamarin.Mobile implementation)
The iOS version works perfectly.
Now I am trying do get it run on Windows Phone 8.1.
I use the same PCL and wrote the Windows Phone dependency class for initializing the location manager.
The app starts and show up the UI. I switched on the location services in the settings in the simulator. I started the maps application which asks me to agree for using the location. I choose a location in the simulator tools -> location tab.....I tried everything.
BUT: I always get LocationStatus.Disabled from the Geolocator object....!!!???
Here is my code:
public void InitLocationService()
{
var latitude = 0d;
var longitude = 0d;
this.locator = new Geolocator();
this.reversegeocodequery = new ReverseGeocodeQuery();
if (!locator.LocationStatus.Equals(PositionStatus.Disabled))
{
var position = locator.GetGeopositionAsync().GetResults();
latitude = position.Coordinate.Latitude;
longitude = position.Coordinate.Longitude;
reversegeocodequery.GeoCoordinate = new GeoCoordinate(latitude, longitude);
reversegeocodequery.QueryAsync();
Any idea to get NOT Disabled ???
Open for any ideas,
thanx
Marco