> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/v9/features/geofencing/fine-tuning-geofence-sensitivity.md).

# Fine Tuning Geofence Sensitivity

This section discusses tuning the sensitivity of geofence events.

{% hint style="info" %}
If you are using **Pointr Express Geofenced Notifications**, you can also tune the frequency of notifications using the Cool Off time. Please refer [**here**](https://dev.pointr.tech/v9/features/geofencing/geofenced-notifications-in-pointr-express-r.md) for more information.
{% endhint %}

### Tolerance & Ignore Period

You can increase or decrease the size of the geofence specifically for enter and exit events. For example, if you increase the size for exit by entering value 0.1 (which means 10%), it means that the user will get the exit event further away from the geofence boundaries.

1. `levelGeofenceDistanceToleranceForEnter`: Percentage rate to increase the radius of the enclosing circle of the level geofence while resolving enter event.
2. `levelGeofenceDistanceToleranceForExit`: Percentage rate to increase the radius of the enclosing circle of the level geofence while resolving exit event.
3. `globalGeofenceDistanceToleranceForEnter`: Percentage rate to increase the radius of the enclosing circle of the global geofence while resolving enter event.
4. `globalGeofenceDistanceToleranceForExit`: Percentage rate to increase the radius of the enclosing circle of the global geofence while resolving exit event.

#### Ignore Period

In order to provide a better experience the SDK does not fire all the events immediately by default. For example, if the user is walking along the boundaries of a geofence, the position could be constantly jumping inside and outside of the boundaries, which would cause consecutive enter and exit events. To avoid this, the SDK sets a ignore period that starts counting from the last triggered event. Example:

Parameters: `levelGeofenceIgnorePeriodSinceLastTriggerInSeconds` and `globalGeofenceIgnorePeriodSinceLastTriggerInSeconds`

{% hint style="info" %}
Ignore period starts counting on each geofence individually.
{% endhint %}

Case 1:

1. SDK sets default ignore period, 30 seconds
2. User enters the geofence and geofence manager triggers an enter event
3. 30 seconds ignore period starts
4. User leaves the geofence 40 seconds after the enter
5. User gets exit trigger

Case 2:

1. SDK sets default ignore period, 30 seconds
2. User enters the geofence and geofence manager triggers an enter event
3. 30 seconds ignore period starts
4. User leaves and enters the geofence constantly in small periods of time (less than 30s)
5. For every enter and exit, ignore period is reset to 30 seconds
6. User finally leaves the geofence
7. User gets exit trigger 30 seconds after final exit

{% hint style="warning" %}
Beacon geofencing works in the background if user has given `ACCESS_BACKGROUND_LOCATION` permission for Android and `NSLocationAlwaysAndWhenInUseUsageDescription` permission for iOS.
{% endhint %}

### Platform Limitations for Global Geofencing

The Pointr Mobile SDK uses native geofencing APIs from iOS and Android to get geofence events. Both platforms have a maximum number of geofences that can be monitored at any given time. Since the your app can also monitor for geofences directly (not using the Pointr SDK), both SDK and your app will share the maximum number allowed by each platform.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/v9/features/geofencing/fine-tuning-geofence-sensitivity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
