Quantcast
Viewing all articles
Browse latest Browse all 77050

Geolocator, Can I access to two simultaneous tasks?

I have one task on the screen with the map accessing the Geolocator, Its Work!, but also open another page can not receive the coordinates, anyone have any idea about what's going on?

Plugin: Xam.Plugin.Geolocator


using Xamarin.Forms.Maps; using CoreLocation; using Geolocator.Plugin; private async void GetLocaction () { var locator = CrossGeolocator.Current; locator.DesiredAccuracy = 50; var position = await locator.GetPositionAsync (10000); Pages.MyPosition mPos = new Pages.MyPosition (); mPos.Latitude = position.Latitude; mPos.Longitude = position.Longitude; }

Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>