我在项目中使用Xamarin地理位置。当我在模拟器中测试应用程序时
cannot throw 'plugin.geolocator.abstractions.Geolocationexception on thread 1
,并且不返回任何值。
var locator = CrossGeolocator.Current;
locator.DesiredAccuracy = 20;
var position = await locator.GetPositionAsync(timeout:
TimeSpan.FromSeconds(10000));
答案 0 :(得分:0)