> 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/features/geofencing/testing-geofences-remotely.md).

# Testing Geofences Remotely

Simulate the device's GPS location on Android and iOS to test outdoor geofence notifications when you are not on site.

If you are not at your client's site, you can still test outdoor geofence notifications by simulating the phone's GPS location. The [MapWidget Joystick](https://dev.pointr.tech/features/indoor-location-blue-dot/show-a-blue-dot/mapwidget-joystick.md) simulates a position inside the MapWidget; to test outdoor geofence events, the device itself needs to report the new location. This guide shows how to do that.

Android and iOS need two different methods: on Android you use the **Fake GPS** app on the phone, and on iOS you use **3uTools** on a computer.

{% hint style="warning" %}
Fake GPS and 3uTools are third-party tools. Pointr does not provide or support them. Use them only on test devices, and restore the real location when you finish testing.
{% endhint %}

## Prerequisites

* Your app is built with the Pointr Mobile SDK and has geofences configured. See [Using Geofences in Your App](https://dev.pointr.tech/features/geofencing/using-geofences-in-your-app.md).
* Your app has **Always** location access and notification permission on the test device. See [Operating System Permissions](https://dev.pointr.tech/features/indoor-location-blue-dot/operating-system-permissions.md).
* **Android:** an Android phone and the Fake GPS app from Google Play. No root and no computer are needed.
* **iOS:** an iPhone, a USB cable, and a Windows PC or Mac with 3uTools installed (free download from [3u.com](https://www.3u.com)). On iOS 16 and later, Developer Mode must be turned on. The iPhone stays connected to the computer while the simulated location is in use.

## Simulate a GPS location

{% tabs %}
{% tab title="Android" %}
{% embed url="<https://www.youtube.com/watch?v=wdms5anEw5g>" %}
How to Fake GPS Location on Android
{% endembed %}

{% stepper %}
{% step %}

### Install Fake GPS

Open Google Play, search for "Fake GPS", and install the app.
{% endstep %}

{% step %}

### Turn on Developer options

1. Open **Settings** and tap **About phone** at the bottom of the list.
2. Scroll down to **Build number** and tap it 7 times in a row. On Samsung phones, Build number is under **About phone > Software information**.
3. Enter your screen lock PIN if the phone asks for it.
4. The phone shows "You are now a developer". If Developer options are already on, it shows "No need, you are already a developer".

<img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2FzqijSZ6EBkScTe2Oxiin%2FPasted%20image%202026-11-12%2006.49.01.png?alt=media&amp;token=62723ad4-95e0-4346-a3a8-acf261ff0853" alt="" height="567" width="250">
{% endstep %}

{% step %}

### Choose Fake GPS as the mock location app

1. Go to **Settings > System > Developer options**. You can also open it from the Fake GPS app: tap the menu at the top right and choose **Development Settings**.
2. Tap **Select mock location app**. If you cannot find it, tap the search icon at the top of Developer options and type "mock".
3. Choose **Fake GPS** from the list. Older Android versions show an **Allow mock locations** switch instead; turn it on.

<img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2F1BW3qiJIYHE74HbCPCzV%2FPasted%20image%202026-11-12%2006.50.06.png?alt=media&amp;token=39fd2bb3-02cc-44b5-956f-fda6a3e9bf2a" alt="" height="567" width="250">
{% endstep %}

{% step %}

### Set the simulated location

1. Open the Fake GPS app.
2. Move the map, or use the search box, to a point **outside** your geofence.
3. Tap the **Play** button. The phone now reports this point as its location.
4. Open Google Maps and check that the blue dot is at the new point.
   {% endstep %}

{% step %}

### Trigger the geofence

1. Open your app once so that it registers the geofences, then send it to the background.
2. In Fake GPS, move the map to a point **inside** the geofence and tap **Play** again.
3. Wait for the notification. It can take one to a few minutes, because Android checks geofences at intervals.
4. To test the exit event, move the point outside the geofence again.
   {% endstep %}

{% step %}

### Stop the simulated location

1. In Fake GPS, tap the **Stop** button.
2. In Developer options, set **Select mock location app** to **Nothing**.
3. Turn Location off and on again, so that the phone forgets the last simulated location.
   {% endstep %}
   {% endstepper %}
   {% endtab %}

{% tab title="iOS" %}
{% embed url="<https://www.youtube.com/watch?v=sCaiLxjJWS4>" %}
How to use 3uTools to change iPhone location (official 3uTools channel)
{% endembed %}

{% stepper %}
{% step %}

### Turn on Developer Mode (iOS 16 and later)

1. Connect the iPhone to the computer once and open 3uTools, so that the Developer Mode option appears on the phone.
2. On the iPhone, open **Settings > Privacy & Security > Developer Mode** and turn it on.
3. Restart the iPhone when it asks, then tap **Turn On** and enter your passcode.
   {% endstep %}

{% step %}

### Connect the iPhone to 3uTools

1. Connect the iPhone with the USB cable and unlock it.
2. If the iPhone asks "Trust This Computer?", tap **Trust** and enter your passcode.
3. Wait until 3uTools shows your iPhone's details on its main screen.
   {% endstep %}

{% step %}

### Open Virtual Location

1. In 3uTools, open the **Toolbox** tab at the top of the window.
2. Under **Common Tools**, click **Virtual Location**. A map window opens.
3. If the map does not load or the button is greyed out, restart 3uTools and connect the iPhone again.

<img src="https://2107440607-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX0ubTdDuDEByHfWtKKVg%2Fuploads%2FjkbNVtpUM8WufbBgViAj%2FPasted%20image%202026-11-12%2006.50.56.png?alt=media&amp;token=a92fafef-c8c8-4034-9f0f-b4714538353b" alt="" height="387" width="576">
{% endstep %}

{% step %}

### Set the simulated location

1. Type an address or coordinates in the search box, or click a point on the map, **outside** your geofence.
2. Click **Modify Virtual Location**. Keep the iPhone unlocked while 3uTools applies the change.
3. Open Apple Maps on the iPhone and check that the blue dot is at the new point.
   {% endstep %}

{% step %}

### Trigger the geofence

1. Open your app once so that it registers the geofences, then send it to the background.
2. In 3uTools, choose a point **inside** the geofence and click **Modify Virtual Location** again.
3. Wait for the notification. To test the exit event, move the point outside the geofence again.
   {% endstep %}

{% step %}

### Stop the simulated location

1. In the Virtual Location window, click **Restore true location**.
2. If the iPhone still shows the simulated location, restart the iPhone.
   {% endstep %}
   {% endstepper %}
   {% endtab %}
   {% endtabs %}

## Troubleshooting

<table><thead><tr><th width="260">Problem</th><th>What to check</th></tr></thead><tbody><tr><td>No notification arrives</td><td>Check that your app has Always location access and notification permission, and that you started from a point outside the geofence before moving inside.</td></tr><tr><td>Android keeps the simulated location after you stop</td><td>Turn Location off and on, or set the mock location app to Nothing.</td></tr><tr><td>3uTools cannot change the location or load the developer image</td><td>Keep the iPhone unlocked, use a good USB cable, check that Developer Mode is on, and restart 3uTools.</td></tr><tr><td>Some other apps stop working</td><td>Banking apps and some games detect simulated locations. This does not affect testing your own app.</td></tr></tbody></table>


---

# 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/features/geofencing/testing-geofences-remotely.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.
