I’m setting up geofencing for Android devices and need each device to have its own geofence. I already created a fence from Admin > Geofencing, but I’m not sure how to assign different fences device by device. Is there a way to apply one geofence to one Android device and another geofence to a different device?
Assign a different geofence to each Android device in HexnodeSolved
Tags
Replies (4)
Yes @haniel. Different geofences can be assigned to different Android devices, but the assignment is done through policies. A geofence is first created in the portal, and then added to an Android policy. To assign a unique geofence to a specific device, create a dedicated policy for that device and deploy the policy only to that device. Here is the workflow:
- Go to Admin > Geofencing.
- Click Create Fence.
- Enter the fence name, search for the location, configure the radius, and save the fence.
- Go to Policies > New Policy.
- Under Android, go to Tracking and Fencing > Geofencing.
- Click Configure, then Add Fence.
- Select the geofence created for that device.
- Open the Policy Targets tab.
- Add only the specific Android device that should receive this geofence.
10. Save the policy.
Repeat the same process for each Android device that needs a different geofence. If multiple devices should use the same geofence, they can be targeted by the same policy.
So there isn’t a place where I assign the fence directly from the device page? I was looking there and couldn’t find anything that matched.
Correct. The fence itself is created under Admin > Geofencing, but it is applied to devices through a policy. The device page will not be the main place to configure the geofence.
For one geofence per device, the structure would be something like:
- Geofence A + Policy A targeted to Device A
- Geofence B + Policy B targeted to Device B
- Geofence C + Policy C targeted to Device C
The important part is to keep each policy targeted only to the device that should receive that specific fence.
That makes sense. I clicked New Policy and found the Android > Tracking and Fencing > Geofencing option. Creating a separate policy per device worked for setting different fences.