Что это location activity
Действия расположения на информационной панели конфиденциальности
Как просмотреть и удалить действия расположения?
Чтобы просмотреть и очистить действия с местоположением, связанные с вашей учетной записью Майкрософт, перейдите на свою домашняя страница информационной панели конфиденциальности и найдите сведения о действиях с местоположением в статье Управление данными о действиях. Данные, отображаемые на этой странице, включают в себя последние известные местоположения ваших устройств с Windows 8.1 и 10, а также данные о местоположении из Bing и Microsoft Health, полученные с помощью GPS.
Некоторые данные о расположении не будут отображаться на информационной панели конфиденциальности, включая любимые места, сведения о выставлении счетов и доставке, адрес профиля, данные о расположении, которое вы связали с приложением или устройством, а также данные о расположении, которое вы связали со своим содержимым, таким как фотографии или встречи в календаре.
Как очистить журнал сведений о расположении на устройстве?
Чтобы очистить данные о местоположении, хранимые на Windows 10 устройстве, выберите Начните, а затем выберите Параметры > конфиденциальности > расположение.
Как изменить мои данные Microsoft Health?
Корпорация Майкрософт объявила об окончании поддержки Microsoft Health панели мониторинга. Дополнительные данные см. в этой Microsoft Health панели мониторинга.
Как изменить мои сохраненные и избранные места?
Перейдите в my Places in Bing, чтобы изменить сохраненные места.
Как выбрать приложения и устройства, которые могут запрашивать доступ к моему местоположению?
Выполните следующие действия для вашего устройства.
Windows 10 устройств: выберите Параметры > конфиденциальности > расположение
Устройства с iOS Выберите Параметры > службы определения > конфиденциальности
Устройства с Android:выберите Параметры > Connections > Расположение
Как отключить функцию «Поиск устройства»?
На устройстве Windows 10 перейдите в Параметры > обновление & безопасности > Поиск устройства или Поиск Телефон.
Глубокое погружение в определение местоположения
Этот пост является переводом топика из блога android-developers. Далее повествование ведется от Рето Майера, автора книги Professional Android 2 Application Development. Он пишет о том, как можно улучшить приложения, использующие местоположение, в смысле кэширования результатов, скорости работы и так далее.
Без разницы, ищете ли вы место, где бы поесть, или ближайшее место велосипедов Boris Bike, всегда есть задержка при получении данных местоположения от GPS и заполнении абстрактного списка результатов в вакууме. Когда вы находитесь в месте, где хотели бы получить контекстную информацию, то часто вы сталкиваетесь с отсутствием подключения к данным.
Вместо того, чтобы грозить кулаком в небо, я написал open-source приложение, которое включает в себя советы и рекомендации по сокращению времени между открытием приложения и просмотром актуальной информации о близлежащих местах, вкупе с разумным обеспечением offline режима работы. И всё это, сохраняя использование аккумулятора на возможном минимуме.
Покажи мне код!
Вы можете проверить мой проект Android Protips for Location. Не забудьте прочесть Readme.txt, чтобы успешно скомпилировать и запустить приложение.
Что оно делает на самом деле?
Оно использует Google Places API для реализации базовой функциональности приложений, которые которые используют местоположение для определения списка близлежащих достопримечательностей (точек на карте), позволяют просмотреть их детали, а также проверить или оценить.
Код реализует многие из лучших практик, о которых я подробно рассказал на своей сессии на Google I/O 2011, Android Protips: Advanced Topics for Expert Android Developers (видео). В том числе использование Intent’ов для получения обновлений о местоположении, используя Passive Location Provider, наблюдение за состоянием устройства для изменения частоты обновлений, переключение Receiver’ов во время исполнения приложения, и также используя Cursor Loader.
Приложение написано для Honeycomb, но также может работать и на версия 1.6 и выше.
Теперь у вас есть код, давайте подробнее рассмотрим его
Мой главный приоритет — свежесть: минимизация задержек между открытием приложения и возможностью проверить нужные места, и в то же время минимизировать использование аккумулятора.
Свежесть — значит никогда не ждать
Можно значительно сократить время ожидания получения первого приближения к местоположению, путём выбора последнего известного из Location Manager’a каждый раз, когда приложение переходит в активный режим.
В этом примере из GingerbreadLastLocationFinder, мы перебираем все провайдеры местоположения на устройстве, даже те, которые на данный момент недоступны, чтобы найти наиболее точное последнее местоположение.
Если есть координаты одного или более местоположений, то выбирается самое точное. Иначе, просто возвращается самый недавний результат.
Во втором случае (когда определено, что последнее обновление местоположения недостаточно недавнее), значение так или иначе возвращается, но мы запрашиваем одно обновление местоположения, используя самый быстрый провайдер.
К сожалению, мы не можем определить наибыстрейших провайдеров, но, на практике, понятно, что определение местоположения при помощи сети возвращает результаты быстрее.
Отметим также, что этот фрагмент кода показывает GingerbreadLastLocationFinder, который использует метод requestSingleUpdate для получения единоразового обновления местоположения. Эта функциональность не была доступна до Gingerbread — проверьте LegacyLastLocationFinder, посмотрите как я реализовал такую же функциональность для более ранних версий Android.
singleUpdateReceiver передает полученное обновление назад к вызывающему классу через слушателя Location Listener.
Используйте Intent’ы для получения обновлений местоположения
Получив наиболее точную/своевременную оценку текущей позиции, мы также хотим получать её обновления.
Класс PlacesConstants включает в себя набор значений, которые определяют частоту обновления местоположения. Настройте их, чтобы убедиться, что обновления приходят так часто, как это требуется.
Следующий шаг — запросить обновление местоположения от Location Manager. В следующем фрагменте кода, взятом из GingerbreadLocationUpdateRequester мы можем передать критерии, используемые для определения — какой Location Manager будет запрашивать обновления напрямую в вызове метода requestLocationUpdates.
Обратите внимание, что мы передаём Pending Intent, а не Location Listener.
Вообще, я предпочитаю использовать Location Listener’ов, потому что они предоставляют гибкость в регистрации приёмников в нескольких Activity или Сервисах, или напрямую в манифесте.
В этом приложении, новое местоположение означает обновленный список близлежащих мест. Это происходит через сервисы, которые отправляют запросы к серверу и обновляют Контент-провайдер, который заполняет список мест.
Так как изменение местоположения напрямую не обновляет UI, то имеет смысл создавать и регистрировать связанный LocationChangedReceiver в манифесте, а не в Activity.
LocationChangedReceiver извлекает местоположение из каждого обновления и запускает сервис PlaceUpdateService, чтобы обновить базу близлежащих мест.
Получение данных во время автономной работы
Чтобы добавить поддержку режима offline, мы начнём с кэширования результатов поиска по PlacesContentProvider и PlaceDetailsContentProvider.
Также, при определенный обстоятельствах нужно проводить выборку сведений о местоположении. Этот фрагмент кода из сервиса PlacesUpdateService демонстрирует, как предварительная выборка включается для ограниченного количества мест.
Обратите внимание на то, что предварительная выборка данных потенциально выключается при низком заряде аккумулятора.
Похожая техника используется для реализации offline отметок.
Оптимизация времени работы аккумулятора: умные сервисы и использование состояния устройства для переключения ресиверов
Нет смысла запускать сервис обновления, когда устройство находится в автономном режиме. Сервис PlaceUpdateService проверяет возможность соединения, прежде чем пытаться получить обновление.
Если соединения нет, то ActiveLocationChangedReceiver и PassiveLocationChangedReceiver выключаются, а ConnectivityChangedReceiver включается.
ConnectivityChangedReceiver прослушивает все изменения сетевого соединения. Когда производится новое подключение, то он просто выключает себя и включает слушателей местоположения.
Мониторинг состояния аккумулятора для уменьшения функциональности и экономии энергии
Когда телефон на последних 15%, то большинство приложений не работает, для того чтобы сохранить заряд. Мы можем зарегистрировать ресиверов в манифесте, чтобы выдавать предупреждение, когда устройство входит или выходит из состояния низкой батареи.
Этот фрагмент из PowerStateChangedReceiver выключает PassiveLocationChangedReceiver всякий раз, когда устройство переходит в состояние низкого аккумулятора и включает его, когда заряд в порядке.
Можно расширить эту логику, отключив все упреждающие выборки или уменьшив частоту обновления в условиях низкого заряда аккумулятора.
Службы расположения в Android
В этом руководстве рассматривается отслеживание расположения в приложениях Android и описывается, как узнать расположение пользователя с помощью API службы расположения Android, а также Fused Location Provider, доступного в API служб расположения Google.
Как правило, в приложениях следует использовать Fused Location Provider вместо устаревшего API службы расположения Android, только если это необходимо.
Принципы определения расположения
Независимо от того, какой API вы выбрали для работы с данными расположения, некоторые принципы в Android неизменны. В этом разделе описываются поставщики сведений о расположении и разрешения, связанные с расположением.
Поставщики сведений о расположении
Для определения расположения пользователя используется несколько технологий. Используемое оборудование зависит от типа поставщика сведений о расположении, выбранного для сбора данных. Android использует три поставщика сведений о расположении.
Поставщик GPS — GPS предоставляет наиболее точное расположение, использует максимальную мощь и лучше всего туризм. Этот поставщик использует сочетание технологии GPS и технологии aGPS, которая возвращает данные GPS, собранные вышками сотовой связи.
Поставщик сети — предоставляет сочетание Wi-Fi и сотовой связи, включая данные агпс, собираемые ячейкой Towers. Он использует меньше электроэнергии, чем поставщик данных GPS, но возвращает данные о расположении переменной точности.
Пассивный поставщик — параметр «проникновения», использующий поставщики, запрашиваемые другими приложениями или службами для создания данных расположения в приложении. Это менее надежный, но более энергосберегающий вариант, который идеально подходит для приложений, для работы которых не требуется постоянное обновление данных расположения.
Разрешения расположения
Приложению с поддержкой расположения требуется доступ к аппаратным датчикам устройства для получения данных GPS, Wi-Fi и сотовой сети. Управление доступом осуществляется с помощью соответствующих разрешений в манифесте приложения Android. Доступно два разрешения — в зависимости от требований вашего приложения и выбора API, необходимо разрешить одно из следующих действий:
ACCESS_FINE_LOCATION — Разрешает приложению доступ к GPS. Требуется для использования поставщика данных GPS и пассивного поставщика (пассивному поставщику требуется разрешение на доступ к данным GPS, собираемым другим приложением или службой). Необязательное разрешение для поставщика данных сети.
Для приложений, нацеленных на API версии 21 (Android 5.0 Lollipop) или более поздней версии, можно включить ACCESS_FINE_LOCATION и запускать их на устройствах, на которых отсутствует оборудование GPS. Если приложению требуется оборудование GPS, необходимо явно добавить android.hardware.location.gps uses-feature элемент в манифест Android. Дополнительные сведения доступны в справочных материалах по элементу uses-feature Android.
Чтобы задать разрешения, на Панели решения разверните папку Свойства и дважды щелкните файл AndroidManifest.xml. Разрешения будут перечислены в разделе Необходимые разрешения.
Установка любого из этих разрешений укажет Android, что приложению требуется разрешение пользователя для доступа к поставщикам сведений о расположении. Устройства, использующие уровень API 22 (Android 5.1) или ниже, будут предлагать пользователю предоставить эти разрешения при каждой установке приложения. На устройствах с уровнем API 23 (Android 6.0) или выше приложение должно будет выполнить проверку разрешений во время выполнения, прежде чем отправить запрос к поставщику сведений о расположении.
Примечание. Установка ACCESS_FINE_LOCATION подразумевает доступ к примерным и точным данным расположения. Не нужно задавать оба разрешения. Задайте только минимальное разрешение, достаточное для работы приложения.
Приложения должны быть устойчивы к ситуациям, когда пользователь не предоставил разрешение (или отменил его), и продолжать работу. Дополнительные сведения о реализации проверок разрешений во время выполнения в Xamarin.Android приведены в руководстве по управлению разрешениями.
Использование Fused Location Provider
Поставщик Fused Location Provider предпочтителен для приложений Android, которые получают данные об изменении расположения от устройства, так как он эффективно выбирает поставщик сведений о расположении во время выполнения, чтобы обеспечить оптимальную информацию о расположении и экономить заряд аккумулятора. Например, пользователь, гуляющий на открытом воздухе, получает лучшие координаты расположения с помощью GPS. Если он затем зайдет в здание, где сигнал GPS слабый (или отсутствует), Fused Location Provider может автоматически переключиться на Wi-Fi, который лучше работает в помещениях.
Fused Location Provider является компонентом Сервисов Google Play. Для работы API Fused Location Provider в приложении должен быть правильно установлен и настроен пакет Сервисов Google Play, а на устройстве должен быть установлен APK Сервисов Google Play.
Проверка установки Сервисов Google Play
Работа Xamarin.Android завершится аварийно, если при попытке использовать Fused Location Provider не будут установлены Сервисы Google Play (или этот они окажутся устаревшими). В этом случае возникнет исключение времени выполнения. Если Сервисы Google Play не установлены, приложение должно вернуться к использованию службы расположения Android, о которой говорилось выше. Если Сервисы Google Play устарели, приложение может отобразить для пользователя сообщение с просьбой обновить установленную версию Сервисов Google Play.
В этом фрагменте кода приведен пример того, как действие Android может программно проверить, установлены ли Сервисы Google Play.
FusedLocationProviderClient
Получение последнего известного расположения
Метод FusedLocationProviderClient.GetLastLocationAsync() предоставляет простой и неблокирующий способ, позволяющий приложению Xamarin.Android быстро получить последнее известное расположение устройства с минимальными затратами на написание кода.
В этом фрагменте кода показано, как использовать метод GetLastLocationAsync для получения данных о расположении устройства.
Подписка на данные об изменении расположения
Приложение Xamarin. Android также может подписываться на обновления расположения из поставщика расположений с плавким предохранителем с помощью FusedLocationProviderClient.RequestLocationUpdatesAsync метода, как показано в следующем фрагменте кода:
Этот метод принимает два параметра.
Android.Gms.Location.LocationCallback — Для получения обновлений местоположения приложение Xamarin. Android должно подделать подкласс LocationProvider абстрактному классу. Этот класс предоставлял два метода, которые могут быть вызваны Fused Location Provider для передачи в приложение обновленных сведений о расположении. Это будет подробнее рассмотрено ниже.
Использование API службы расположения Android
Служба расположения лучше всего подходит для приложений, работающих на устройствах, на которых не установлены Сервисы Google Play.
Чтобы получить расположение пользователя с помощью службы расположения Android, требуется выполнить несколько действий.
Диспетчер расположения
Запрос данных об изменении расположения из LocationManager
Метод RequestLocationUpdates сообщает системной службе расположения, что приложение должно начать получать данные об изменении расположения. Этот метод позволяет указать поставщик, а также пороги времени и расстояния для управления частотой обновления. Например, приведенный ниже метод запрашивает данные об изменении расположения от поставщика сведений о расположении GPS каждые 2000 миллисекунд и только при изменении расположения более чем на 1 метр.
Приложение должно запрашивать данные об изменении расположения только так часто, как это необходимо для его эффективной работы. Это увеличивает время работы аккумулятора и повышает удобство работы пользователя.
Реагирование на данные об изменении расположения из LocationManager
В следующем коде показаны методы в ILocationListener интерфейсе:
Отмена подписки на данные об изменении из LocationManager
Чтобы обеспечить экономию системных ресурсов, приложение должно как можно скорее отменить подписку на данные об изменении расположения. Метод RemoveUpdates указывает LocationManager остановить отправку данных об изменении в наше приложение. Например, действие может вызвать RemoveUpdates в OnPause методе, чтобы мы смогли экономить электроэнергию, если приложение не нуждается в обновлениях расположения, пока его действие не находится на экране.
Если приложению необходимо получать данные об изменении расположения в фоновом режиме, необходимо создать пользовательскую службу, которая подписывается на системную службу расположения. Дополнительные сведения см. в руководстве по использованию фонового режима для служб Android.
Определение лучшего поставщика сведений о расположении для LocationManager
В следующем коде показано, как получить наилучший доступный поставщик и использовать его при запросе данных об изменении расположения.
Сводка
В этом разделе описано получение расположения пользователя с помощью службы расположения Android и Fused Location Provider из API служб расположения Google.
Windows location service and privacy
Microsoft operates a location service that helps determine the precise geographic location of your Windows device. The precise location of your device allows apps to give you directions, show shops and restaurants that are near you, and more.
Many apps and services request location information from your device, and the Windows location service gives you control over which apps are allowed to access your precise location.
How the location settings work
Location services is a device-wide setting that can be controlled by the device administrator. When turned on, it enables certain Windows features—such as auto-setting the time zone or Find my device—to function properly. When this location setting is enabled, the Microsoft location service will use a combination of global positioning service (GPS), nearby wireless access points, cell towers, and your IP address (or default location) to determine your device’s location. Depending on the capabilities of your device, your device’s location can be determined with varying degrees of accuracy and may in some cases be determined precisely.
If you have turned on Location services, your device sends location information (including wireless access point information, cellular tower information, and precise GPS location if available) to Microsoft after removing any data identifying the person or device before leaving the device. This de-identified copy of location information is used to improve Microsoft location services and, in some instances, shared with our location service provider partners, currently HERE and Skyhook, to improve the location services of the provider.
Additionally, with this setting turned on, each user on the device can allow apps to use their device’s location and location history to deliver location-aware services as precisely as their device supports. If you grant a specific app access to your device’s location on the settings page, that app will have access to precise location information. Otherwise the location information provided to the app has lower accuracy. When your location is used by a location-aware app or Windows service or feature, your location information and recent location history are stored on your device.
If an app or feature accesses the device’s location and you are signed in with your Microsoft account, your last-known location information is also saved to the cloud, where it is available across your devices to other apps or services that use your Microsoft account and for which you’ve granted permission. If you are signed in with your Microsoft account and your device cannot reliably determine your current location on its own (such as when you are in a building or basement), apps or services can use your last-known location from your location history that is stored in the cloud if it is available. Data about a Windows device’s recent location history is also stored on the device even if no Microsoft account is in use, and certain apps and Windows features can access this location history.
There are some exceptions to how your device’s location can be determined that are not directly managed by the location settings.
Even when you’ve turned off Location services in Windows, some third-party apps and services could use other technologies (such as Bluetooth, Wi-Fi, cellular modem, etc.) to determine your device’s location with varying degrees of accuracy. Microsoft requires third-party software developers that develop apps for our Microsoft Store or develop apps using Microsoft tools to respect the Windows location settings unless you’ve provided any legally required consent to have the third-party developer determine your location. However, to further reduce the risk that an app or service can determine your location when the Windows device location setting is off, you should only install apps and services from trusted sources. For more comprehensive protection of your location, you could consider disabling radio-based components of your device such as Wi-Fi, Bluetooth, cellular modem, and GPS components, which might be used by an app to determine your precise location. However, doing so will also impair other experiences such as calling (including emergency calling), messaging, internet connectivity, and connecting to peripheral devices like your headphones. Please read the privacy policies of the apps and services you’ve installed to learn more about how they use your device’s location.
To facilitate getting help in an emergency, whenever you make an emergency call, Windows will attempt to determine and share your precise location, regardless of your location settings. In addition, your mobile operator will have access to your device’s location if your device has a SIM card or is otherwise using a cellular service.
Manage location settings
Location service
Go to Start > Settings > Privacy & security > Location.
Do one of the following:
If you’re an administrator on the device, you can use the Location services setting to control whether the location service can be used on this device. If you’re not an admin on this device, you will not see this setting.
To control location for just your user account, switch the Let apps access your location setting On or Off. If «Location services is off» appears on the settings page, you won’t be able to turn on the Let apps access your location setting for an individual user account.
Location history
Some Windows apps and services that use location info also use your location history. When the location setting is on, locations looked up by apps or services will be stored on the device for a limited time (24 hours), then deleted. Apps that have access to this info will be labeled Uses location history on the Location settings page.
To clear location history, either restart your device, or go to Start > Settings > Privacy & security > Location and under Location history, select Clear. Clearing the location history only clears the history on the device. Apps that accessed the history before it was cleared may have stored it elsewhere. Refer to your apps’ privacy policies for more info.
To clear location history that’s been stored in the cloud and is associated with your Microsoft account, go to account.microsoft.com, and make sure you’re signed in to your account. Select Clear location activity, and then select Clear.
Default location
You can set a default location for your device that Windows, apps, and services can use when a more exact location can’t be detected using GPS or other methods.
To change the default location for your device, which Windows, apps, and services can use when a more exact location can’t be detected
Go to Start > Settings > Privacy & security > Location.
Under Default location, select Set default.
The Windows Maps app will open. Follow the instructions to set or change your default location.
Location for websites in Microsoft Edge
When location is turned on for Microsoft Edge, you still have control over which websites can access your device location. Microsoft Edge will ask for your permission the first time you visit a website that requests your location information. You can turn off location permission for a website in Microsoft Edge settings. Learn more about location and privacy in Microsoft Edge
How we build the location services database
If Location services in turned on and your device has GPS capability, Microsoft will record the location of mobile cell towers and Wi-Fi access points to help us provide location services,. Our database might include the MAC addresses of your wireless router or other neighboring Wi-Fi network devices. We don’t associate MAC addresses with you personally or with the devices connected to your network.
To prevent Microsoft from using the MAC addresses of your Wi-Fi access points in our location services database, go to Opt out of location services.
How we help keep you informed: the location icon
When one or more apps are currently using your device location through the Windows location service, you’ll see the location icon in the notification area of your taskbar. Hover over the icon to see the name of the app or apps using location.
You can also see which apps are currently using your precise location or have recently accessed your precise location on your Windows device by going to Start > Settings > Privacy & security > Location and under Let apps access your location you’ll see the date and time when location was last used.
Microsoft operates a location service that helps determine the precise geographic location of your Windows device. The precise location of your device allows apps to give you directions, show shops and restaurants that are near you, and more.
Many apps and services request location information from your device, and the Windows location service gives you control over which apps are allowed to access your precise location.
How the location settings work
The device location setting enables certain Windows features such as auto-setting the time zone or Find my device to function properly. When the device location setting is enabled, the Microsoft location service will use a combination of global positioning service (GPS), nearby wireless access points, cell towers, and your IP address to determine your device’s location. Depending on the capabilities of your device, your device’s location can be determined with varying degrees of accuracy and may in some cases be determined precisely.
If you have enabled the device location setting, your device sends de-identified location information (including wireless access point information, cellular tower information, and precise GPS location if available) to Microsoft after removing any data identifying the person or device before leaving the device. This de-identified copy of location information is used to improve Microsoft location services and, in some instances, shared with our location service provider partners, currently HERE and Skyhook, to improve the location services of the provider.
Additionally, with this setting turned on each user on the device can allow apps to use their device’s location and location history to deliver location-aware services as precisely as their device supports. If you grant a specific app access to your device’s location on the settings page, that app will have access to precise location information. Otherwise the location information provided to the app has lower accuracy. When your location is used by a location-aware app or Windows service or feature, your location information and recent location history are stored on your device.
When an app or feature accesses the device’s location and if you are signed in with your Microsoft account, your last known location information is also saved to the cloud, where it is available across your devices to other apps or services that use your Microsoft account and for which you’ve granted permission. If you are signed in with your Microsoft account and your device cannot reliably determine your current location on its own (such as when you are in a building or basement), apps or services can use your last known location from your location history that is stored in the cloud if it is available.
There are some exceptions to how your device’s location can be determined that are not directly managed by the location settings.
Even when you’ve turned off the device location setting, some third-party apps and services could use other technologies (such as Bluetooth, Wi-Fi, cellular modem, etc.) to determine your device’s location with varying degrees of accuracy. Microsoft requires third-party software developers that develop apps for our Microsoft Store or develop apps using Microsoft tools to respect the Windows location settings unless you’ve provided any legally required consent to have the third-party developer determine your location. However, to further reduce the risk that an app or service can determine your location when the Windows device location setting is off, you should only install apps and services from trusted sources. For more comprehensive protection of your location, you could consider disabling radio-based components of your device such as Wi-Fi, Bluetooth, cellular modem, and GPS components, which might be used by an app to determine your precise location. However, doing so will also impair other experiences such as calling (including emergency calling), messaging, internet connectivity, and connecting to peripheral devices like your headphones. Please read the privacy policies of the apps and services you’ve installed to learn more about how they use your device’s location.
To facilitate getting help in an emergency, whenever you make an emergency call, Windows will attempt to determine and share your precise location, regardless of your location settings. In addition, your mobile operator will have access to your device’s location if your device has a SIM card or is otherwise using a cellular service.
Location history
Some Windows apps and services that use location info also use your location history. When the location setting is on, locations looked up by apps or services will be stored on the device for a limited time (24 hours in Windows 10), then deleted. Apps that have access to this info will be labeled Uses location history on the Location settings page.
Default location
You can set a default location for your device that Windows, apps, and services can then use when a more exact location can’t be detected using GPS or other methods.
Geofencing
Some apps use geofencing, which can turn on or off particular services or show you information that might be useful when you’re in an area defined (or “fenced”) by the app. An app can only use geofencing if location has been turned on for that app. If any of your Windows apps are using geofencing, you’ll see One or more of your apps are currently using geofencing on the Location settings page.
Cortana
Cortana works best when she has access to your device location and location history, which she uses to help you—for example, by giving you traffic alerts before you need to leave or reminders based on location like “You’re near the grocery store, where you wanted to buy milk.” Cortana collects your location periodically even if you’re not interacting with her, like when you connect to Wi-Fi or disconnect from Bluetooth. When Cortana is turned on, the Search app also has access to your device location information and will automatically send it to Bing when Cortana suggests web search terms and results for Bing to use as described in the Privacy Statement. If you don’t want Cortana to have access to your device location, follow these steps:
Go to Start > Settings > Cortana.
Select Permissions or Permissions & History.
Select Manage the information Cortana can access from this device.
Turn the Location setting to Off.
Microsoft Edge
When location is turned on for Microsoft Edge, you still have control over which websites can access your device location. Microsoft Edge will ask for your permission the first time you visit a website that requests your location information. You can turn off location permission for a website in Microsoft Edge settings.
There are two versions of Microsoft Edge that can be installed on Windows 10. The new Microsoft Edge is downloadable and considered a desktop app. Follow these steps to turn on location for the new Microsoft Edge:
Go to Start > Settings > Privacy > Location.
Turn on Allow access to location on this device.
Turn on Allow apps to access your location.
Turn on Allow desktop apps to access your location if present.
The legacy version of Microsoft Edge is the HTML-based browser that was released with Windows 10 in July 2015. Follow these steps to turn on location for the legacy version of Microsoft Edge:
Go to Start > Settings > Privacy > Location.
Turn on Allow access to location on this device.
Turn on Allow apps to access your location.
Under Choose which apps can access your precise location, switch the Microsoft Edge setting to On.
How we build the location services database
When Location services is turned on, to help us provide location services, Microsoft records the precise location of mobile cell towers and Wi-Fi access points if your device has GPS capability. Our database might include the MAC addresses of your wireless router or other neighboring Wi-Fi network devices. We don’t associate MAC addresses with you personally or with the devices connected to your network.
To prevent Microsoft from using the MAC addresses of your Wi-Fi access points in our location services database, go to Opt out of location services.
How we help keep you informed: the location icon
When one or more apps are currently using your device location through the Windows location service, you’ll see the location icon in the notification area of your taskbar (on Windows 10 PCs) or in the status bar at the top of your screen (on Windows 10 Mobile devices). The icon won’t be shown for geofencing.
To show or hide the location icon:
Go to Start > Settings > Personalization > Taskbar.
Under Notification area, select Select which icons show on the taskbar.
Turn the Location Notification setting On or Off.
On Windows 10 Mobile:
Select Privacy > Location.
Turn Show location icon on or off.
If you’re using a device assigned to you by your workplace, or if you’re using a personal device at your workplace, you might not be able to change the location settings. If that’s the case, Some settings are managed by your organization will appear at the top of the Location settings page.
How to control location settings
Windows location settings give you control over whether Windows features can access your device’s location and which Windows apps can use your device’s location and location history information. To check your location settings, go to Start > Settings > Privacy > Location.
To clear location history, either restart your device, or go to Start > Settings > Privacy > Location, and under Location history, select Clear. Clearing the location history only clears the history on the device. Apps that accessed the history before it was cleared may have stored it elsewhere. Refer to your apps’ privacy policies for more info.
To clear location history that’s been stored in the cloud and is associated with your Microsoft account, go to account.microsoft.com, and make sure you’re signed in to your account. Select Clear location activity, and then select Clear.
To turn the Windows location settings on or off:
Go to Start > Settings > Privacy > Location.
Do one of the following:
To control location for the whole device if you’re an administrator on the device, select Change, and then in the Location for this device message, switch the setting to On or Off.
To control location for just your user account, switch the Allow apps to access your location setting to On or Off. If Location for this device is off appears on the settings page, you won’t be able to turn on the Allow apps to access your location setting for an individual user account. (Note that in previous versions of Windows, this setting was called Location service.)
On Windows 10 PCs, you can add or remove the Location tile from the notification area at the far right of the taskbar. Here’s how:
Go to Start > Settings > System > Notifications & actions.
Under Quick actions, select Edit your quick actions.
Add, remove, or move the Location tile.
On your mobile device:
Go to Settings > Privacy > Location.
Select Location to turn it on or off.
To change whether an individual app can have access to your precise location:
Go to Start > Settings > Privacy > Location.
Turn each app on or off where it appears under Choose which apps can access your precise location. On a device, each person can do the same for their own accounts. If Allow apps to access your location is turned Off for your user account, the on/off switches can’t be turned on until Allow apps to access your location is turned On.
To change the default location for your PC, which Windows, apps, and services can use when a more exact location can’t be detected:
Go to Start > Settings > Privacy > Location.
Under Default location, select Set default.
The Windows Maps app will open. Follow the instructions to change your default location.