Open DennisWelu opened 5 years ago
Do you having the IsShowingUser
property set to true? Does it still crash if you switch it to false?
@jcmanke Yes good point, I've updated the description to specify that IsShowingUser must be set to "True". When set to false (or left as the default) then the problem does not occur.
This seems like the typical problem with IsShowingUser
, you must have location permission and the device's location services enabled. Most, if not all, UWP devices do not have GPS chips, so they use network signals to determine your location. Airplane mode == no network == no location.
Side note I discovered trying to reproduce this: the system will ask for location permissions the first time you set IsShowingUser
true, but if you deny permission it will crash the app and there is no recovering unless you turn it on from the system settings.
Description
A UWP app started in airplane mode crashes if a map control is present.
Steps to Reproduce
Expected Behavior
No crash
Actual Behavior
Crash with unhandled exception in the UWP map renderer: EXCEPTION:
Basic Information
Reproduction Link
https://github.com/xamarin/xamarin-forms-samples/tree/master/WorkingWithMaps
The HRESULT error code is explained here, having to do with server name resolution: https://ru.stackoverflow.com/a/915097