Device Location Not Showing

786
1
Jump to solution
11-30-2016 05:29 AM
SchuylerDuarte
New Contributor II

Hello,

I am running a Xamarin Forms project built on Xamarin Studio Mac OS X.  When deployed to an iPad Air I am not able to see the device location.  From the samples it seems that this one line of code plots my current device location on my map:  MyMapView.LocationDisplay.IsEnabled = true;

But is there some other configuration I need to make this work?  My screenshot below shows that IsEnabled = true, but it still doesn't plot my location on the map.  For what it's worth, it seems the Location and MapLocation objects of the LocationDisplay don't have any values.  The Started attribute is also false.

Thanks for your help,

Schuyler

DisplayLocation screenshot

0 Kudos
1 Solution

Accepted Solutions
SchuylerDuarte
New Contributor II

More on this:

So it seems that adding the entry NSLocationWhenInUseUsageDescription to the Info.plist file pops the "Allow app to access your location while you use the app?" alert.  

After allowing the access the device location is now working...

View solution in original post

0 Kudos
1 Reply
SchuylerDuarte
New Contributor II

More on this:

So it seems that adding the entry NSLocationWhenInUseUsageDescription to the Info.plist file pops the "Allow app to access your location while you use the app?" alert.  

After allowing the access the device location is now working...

0 Kudos