示例#1
0
        protected override async Task StartListeningAsync()
        {
            await base.StartListeningAsync();

            if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0) && CLLocationManager.LocationServicesEnabled)
            {
                _locationManager.RequestAlwaysAuthorization();
                _locationManager.StartMonitoringVisits();
            }
        }