Skip to main content

Configure automated actions for geofencing (notifications, device lock, or policy assignment)

Overview

Swif's geofencing can act automatically when devices enter or leave a location, such as an office, a school, or a restricted area. You can:

  • send a notification, through Swif events, Slack, and email

  • lock the device

  • apply a policy, for example, turning on location tracking, or turning off the camera

Geofencing works on macOS, Windows, Linux, Android, iOS, and iPadOS devices.


Requirements

Every device needs a tracking policy, so it reports its location. iPhones, iPads, and Android devices also need the Swif Mobile Security app.

Platform

Tracking policy

Also needed

macOS, Windows, Linux

The tracking policy for each platform

—

iOS and iPadOS

Apple Tracking Policy. iOS and iPadOS 15 or later, on company-owned and BYOD devices.

The Swif Mobile Security app, installed and signed in, with location access allowed. See Swif Mobile Security for iOS/iPadOS.

Android

Android Tracking Policy

The Swif Mobile Security app, signed in, with background location access allowed

Without these, the device doesn't report its location, so geofence actions don't run for it. Create Geofence warns you about devices that are missing them. See Step 2.

iPhone and iPad location access: allow the Swif Mobile Security app to use location Always, so geofence actions work when the app isn't open.


Step 1: Create a geofence

  1. In Swif, go to Device Management > Geofences, and click Create Geofence.

  2. Choose the locations, such as a country, a city, or a custom radius around an address.

If your organization doesn't have tracking policies for every platform, you see:

"Some devices can't use geofence tracking because Tracking policies are missing for [N] operating systems."

The missing platforms are listed. Click Configure Tracking Policies to set them up.


Step 2: Link devices

Choose the devices or device groups the geofence applies to. Your selection is kept while you search and filter the list.

Each device shows its tracking policy status:

Status

Meaning

Applied

The device has a tracking policy

Missing

The device has no tracking policy, so it can't report its location

If selected devices are missing a tracking policy, you see "[N] selected device does not have a tracking policy applied." Click Apply Tracking Policy. The policy is applied right away, and the devices change to Applied within a few seconds.

If selected iPhones or iPads don't have the Swif Mobile Security app, you see "[N] selected iOS/iPadOS device doesn't have the Swif mobile app installed." Click View Deployment Guide for steps to install the app from Apple Business Manager. You can still link the devices, but geofence actions won't run on them until the app is installed.


Step 3: Add automated actions

Click Next until you reach Automated actions. You see:

  • Geofence context: a read-only summary of the locations and devices you chose. To change them, go back.

  • Actions: the actions for this geofence. A new geofence starts with one Notification action, which you can remove.

If the geofence has no devices or device groups, you see "Add at least one device or device group to configure automated actions."

Add or edit an action

Click Add action, or Edit on an action. Choose:

Setting

Options

Action type

Notification, Lock device, or Policy assignment

Trigger Event

On Entry, On Exit, or, for Notification only, On Entry & Exit

Editing one action doesn't change the others.

Limits

  • One Notification action per geofence.

  • Two actions in total: one Notification, and one Lock device or Policy assignment. When you have two, Add action is turned off. Delete one to add another.

Notification

  1. Choose the Trigger Event: On Entry, On Exit, or On Entry & Exit.

  2. Choose where to send it: the Swif event feed, Slack channels, or email recipients, such as security@yourcompany.com.

  3. Save the action.

Lock device

  1. Choose the Trigger Event: On Entry or On Exit.

  2. Save the action.

Policy assignment

  1. Choose the Trigger Event: On Entry or On Exit.

  2. Click Select Policy, and choose the policy. The list shows only policies that work on the devices you linked. For example, for Android:

    • Android Tracking Policy: reports the device's location more often, such as every 5 minutes

    • Android Camera Policy: turns off the camera for work apps

    • Android Device Policy: turns off the microphone and audio recording

  3. Save the action.

How policy assignment works

  • On entry: the policy is applied as soon as Swif detects the device inside the geofence, without waiting for the regular policy check.

  • On exit: Swif removes the policy, or restores the device's usual settings. For tracking, the device goes back to its usual reporting interval.

  • Moving back and forth: if a device crosses the boundary several times in a short time, Swif groups the crossings, so the policy doesn't keep switching on and off. Each crossing is still recorded in the event log.

Delete an action

Hover over the action, click Delete, and confirm.


Step 4: Review and save

Review shows the geofence's locations, devices, and an Automated actions section, with each action's type, trigger, and details. It's read-only. To change anything, go back.

Save the geofence.


View an existing geofence

Open the geofence to see its Automated actions, with each action's type, trigger, and the devices it applies to. This view is read-only. To change actions, edit the geofence.


Limits

Limit

Details

iPhone and iPad

Apple lets an app watch at most 20 locations at a time. An iPhone or iPad in more than 20 geofence locations can't watch them all.

Actions

Two per geofence: one Notification, and one Lock device or Policy assignment


Troubleshooting

An iPhone or iPad isn't triggering geofence actions

  • Check that the Swif Mobile Security app is installed and signed in. Link Devices warns you if it isn't.

  • Check that the app can use location Always, in Settings > Privacy & Security > Location Services.

  • Check that the device has the Apple Tracking Policy. Its status should be Applied in Link Devices.

  • Check whether the device is in more than 20 geofence locations.

An Android device isn't triggering geofence actions

  • Check that the user is signed in to the Swif Mobile Security app.

  • Check that background location access is allowed for the app.

  • Check that the device has the Android Tracking Policy.

A device shows "Missing" for its tracking policy

Select it in Link Devices, and click Apply Tracking Policy. Or click Configure Tracking Policies to set up tracking for the whole platform.

I don't see the Automated actions step

Complete the earlier steps first, with at least one location, and at least one device or device group.

I can't add another action

The geofence already has two actions. Delete one to add another.

I can't choose "On Entry & Exit"

Only Notification actions support it. Lock device and Policy assignment support On Entry or On Exit.

I don't see the policy I want in Select Policy

The list shows only policies that work on the linked devices. Policies for other platforms are hidden.


Related resources

Did this answer your question?