# How to configure location tracking for Mac

The location tracking feature for Mac enables you to locate the managed macOS devices enrolled in the Hexnode UEM portal. It includes fetching real-time locations, fetching complete location history traversed by the devices, tracking lost or stolen devices, and so on. Hexnode fetches the geographical location of a macOS device only if the Hexnode UEM app is installed on the device.

With Hexnode’s location tracking for Mac, you can achieve live tracking of your users’ devices. Hexnode also allows you to [export the location details](https://www.hexnode.com/mobile-device-management/help/location-history-and-reports/#export-location-tracking-data) of your devices in PDF/CSV format. You can also [create geofences and impose restrictive policies](https://www.hexnode.com/mobile-device-management/help/geofencing-location-based-mdm-restriction/) on those devices which are out of geofences.

 Pre-requisites:- macOS devices running version 10.11 or higher.
- Hexnode UEM app installed on the macOS devices with the **Location** permission granted to the app.
- The devices must have an active internet connection in order to fetch the location details. Ensure the Wi-Fi option on the device is enabled even if it is connected to an Ethernet network.

 

 Notes:- The location data cannot be fetched for devices that are inactive or have been powered off.
- If the user accidentally forgets to grant the location permission to the Hexnode UEM app during the initial app setup, the user has to grant the permission manually. To grant location permissions, go to **System Preferences/System Settings** > **Security & Privacy/Privacy & Security** > **Privacy** > **Location Services** > Enable **Location Services** and the **Hexnode UEM Helper** app from the listed applications.
- To allow location tracking on macOS 13 and later versions, it is necessary to enable the Hexnode agent applications in the Login Items. To enable this, go to **System Settings** > **General** > **Login Items** > **Allow in the Background** > Enable **Hexnode UEM Helper** and **hexnodeagentd** app from the listed applications.

 

Enable periodic location tracking on macOS devices
--------------------------------------------------

To enable periodic location tracking on a macOS device, you have to associate a location tracking policy with that device. To do so,

1. Navigate to the **Policies** tab on your Hexnode UEM portal.
2. Click on **New Policy** to create a new one or click on any policy to edit an existing one. Enter the **Policy Name** and **Description** in the provided fields.
3. Go to **General Settings > Location Tracking > Configure**. 
    - Select the option **Enable Location Tracking** to enable location tracking on your device.
    - Select an appropriate **Location Update Interval** that indicates how frequently the location data needs to be updated. The time interval ranges from 15 minutes to 24 hours.
4. Navigate to **Policy Targets** and select the required **Devices/Device Groups/Users/User Groups/Domains** to which the policy is to be associated.
5. Click on **Save**.

Instantaneous location tracking of macOS devices
------------------------------------------------

The instantaneous location of a device can be obtained only if a location tracking policy is attached to the device. To fetch the location of a Mac using the Hexnode UEM portal at any particular instant, execute the following steps mentioned below:

1. Navigate to the **Manage** tab on your Hexnode UEM portal.
2. Select the **macOS** device(s) and click on **Actions > Scan Device Location**.

**Or**

1. Navigate to the **Manage** tab.
2. Click on the macOS device you want to track the location. This will take you to the device summary page.
3. Now, click on **Actions > Scan Device Location** to fetch the most recent location of your device.

 Hexnode UEM also provides a location push button for the users to send their current location details to the UEM server manually. To do so, the user has to perform the following steps:

1. Open the Hexnode UEM app on your Mac.
2. Click on the **Send Location** button at the bottom left corner. A popup arises where you can add any additional notes and then click on **Send**.

 
The location details will then be sent to the UEM server. To view the location notes from the console, navigate to **Reports** tab > select **Location Reports** > **Location History**.

[![View location tracking notes of macOS devices from Hexnode reports](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2023/04/Location-tracking-notes-of-macOS-devices-from-reports.png "Location tracking notes of macOS devices from reports")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2023/04/Location-tracking-notes-of-macOS-devices-from-reports.png)Viewing device location of macOS devices
----------------------------------------

Hexnode UEM allows you to view the location details of all location-enabled devices on the portal. You can view the locations of your macOS devices through the following sections:

1. **Dashboard** – The Hexnode dashboard displays the locations of all location-enabled devices enrolled in the portal. The locations can be viewed either through maps or as a list containing all the location details.

[![Location History Widget of Mac devices from Hexnode dashboard](https:2020/07/Location-History-Widget-of-Mac-devices-from-Dashboard.png "Location History Widget of Mac devices from Dashboard")](https:2020/07/Location-History-Widget-of-Mac-devices-from-Dashboard.png)3. **Recent Location** – The most recent location of the device will be mapped in the **Recent Location** tab under the **Device Summary** page. (**Manage > Device >** select a device **> Device Summary**). It shows the last reported location of a location-enabled device from the UEM console. You may choose to view it using the default map or switch to Google Maps. The *See History* button enables a complete view of the locations traversed, date & time of location fetch, etc.

[![View Recent Location of macOS device from Device Summary page](https:2021/02/Recent-location-of-macOS-device.png "Recent Location of macOS device")](https:2021/02/Recent-location-of-macOS-device.png)5. The Location History tab under **Manage > Device >** select a device **> Device Summary** page also gives a view of all the locations traversed, last check-in, and total check-in status of that device.

[![Location History of Mac devices from Hexnode’s Device Summary Page](https:2020/07/Tracking-Location-History-of-Mac-Devices-from-Device-Summary.png "Tracking Location History of Mac Devices from Device Summary")](https:2020/07/Tracking-Location-History-of-Mac-Devices-from-Device-Summary.png)7. **Users/Device Groups/User Groups from Manage tab** – Hexnode also allows you to view the locations of macOS devices from the ‘Locations’ sub-tab under **Users/Device Groups/User Groups**.

 Notes:- You can filter and export location reports by date in Hexnode UEM.
- To disable location tracking from a device, [remove the location tracking policy](https://www.hexnode.com/mobile-device-management/help/how-to-configure-location-tracking-with-hexnode-mdm/#disable-location-tracking) from that device.