> 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/indoor-location-blue-dot/operating-system-permissions.md).

# Operating System Permissions

iOS & Android both require **several permissions to be explicitly requested** from the user to enable certain features in the devices.&#x20;

**If the project configuration has the correct permissions prepared, the SDK will request them automatically**.

{% hint style="warning" %}
SDK does not request or grant any permission if the application is not configured to have it.&#x20;

Permissions can be removed from the host application; however removing the permissions, may cause some SDK features not to work (like foreground / background positioning, wayfinding or geofencing).
{% endhint %}

### Project Configurations <a href="#project-configuration" id="project-configuration"></a>

{% hint style="info" %}

#### Permission Descriptions

On both platforms, it is possible (***or necessary in case of iOS***) to write descriptions of the permissions. Write good descriptions, because otherwise your application can be rejected from the manufacturer’s store.

Please make sure to write clear descriptions when requesting permissions. On iOS, your application can be rejected if descriptions are unclear or do not give a good explanation on why the permission is needed.
{% endhint %}

{% tabs %}
{% tab title="iOS" %}
On iOS, all permissions needed must be added to the `info.plist` file, Apple doesn’t allow SDKs to include permissions on projects automatically.&#x20;

{% hint style="info" %}
Please note that on iOS, none of the permissions are required. Add permissions only if your project needs them.
{% endhint %}

*The following permissions should be added as appropriate:*

#### **Location permissions**

These permissions are required to use 'Blue Dot' or other location-based features, even if you will only use GPS and avoid Bluetooth beacons.

| Key                                                                                                                                                                                    | Description                                                                                                                                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**`NSLocationWhenInUseUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nslocationwheninuseusagedescription)                   | Use this key if your iOS app accesses location information ***only when running in the foreground***. Required for iBeacon, GPS location and geofencing. (**iOS 11+ only**). |
| [**`NSLocationAlwaysAndWhenInUseUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nslocationalwaysandwheninuseusagedescription) | Use this key if your iOS app accesses location information ***while running in the background***. Required for beacon or GPS location. (**iOS 11+ only**).                   |
| [**`NSLocationAlwaysUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nslocationalwaysusagedescription)                         | Required for iBeacon, GPS location and geofencing (**iOS 10 and below only**).                                                                                               |

{% hint style="warning" %}
Do not use the [**`NSLocationAlwaysAndWhenInUseUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nslocationalwaysandwheninuseusagedescription) permission if you don’t plan on getting location information on the background (for example, only for Geofencing purposes). Apple will reject your application if this is requested without a valid reason.
{% endhint %}

As an example, you can use the keys and values shown in below image in your `plist` file in XCode:

<figure><img src="https://2585032735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjgeYeKrK9Emf57ofXXap%2Fuploads%2FexBDMP2o2pnAWwAFEJOu%2FLocation%20Permissions.png?alt=media&amp;token=b2484f01-b56a-4073-a9c9-8c8ac3f28092" alt=""><figcaption></figcaption></figure>

#### **Core Motion permission**

The SDK uses the device’s motion sensors combined with the beacon’s signals in order to calculate an accurate position. Only apps compiled with iOS SDK 17.5 or later require users to give permission to access motion data.

| Key                                                                                                                                            | Description                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [**`NSMotionUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nsmotionusagedescription) | Required for apps compiled with iOS SDK 17.5 or later. |

#### **Bluetooth location permissions**

{% hint style="info" %}
Bluetooth permissions are no longer required for Mobile SDK versions 9.2 and up.
{% endhint %}

SDK has the capability to check the state of the Bluetooth Services.

| Key                                                                                                                                                                      | Description                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| [**`NSBluetoothPeripheralUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothperipheralusagedescription) | To check the status of Bluetooth Services if it is enabled or not on the device. Required for iBeacon. (**iOS 12 and below only**). |
| [**`NSBluetoothAlwaysUsageDescription`**](https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription)         | To check the status of Bluetooth Services if it is enabled or not on the device. Required for iBeacon. (**iOS 13+ only**)           |

{% hint style="info" %}
These permissions are not required for positioning but rather for better diagnostic on positioning related issues.
{% endhint %}

#### **Example Descriptions for Permissions**

| Permission Type | Example Description                                                                                                                                                                    |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Location`      | "Turn-by-turn navigation and location-based notifications require location services to be enabled."                                                                                    |
| `Bluetooth`     | "Turn-by-turn navigation is affected if bluetooth is off. Bluetooth permission is required to check the current bluetooth state, so we can remind you to turn it on in case it's off." |
| `CoreMotion`    | "Motion data is required to enhance wayfinding experience across multiple levels."                                                                                                     |
| {% endtab %}    |                                                                                                                                                                                        |

{% tab title="Android" %}
For Android, the permissions needed by Pointr SDK are part of the library `android.manifest` file already. Unwanted permissions must be removed.

*The following permissions are relevant to the Pointr SDK:*

#### **Required permissions**

The Internet permission is needed, even if you plan in using the SDK mostly offline, as the SDK must check the license and download content from a Pointr Cloud server **at least once**. Even if the server is on an internal network and not on the actual internet.&#x20;

<table><thead><tr><th width="300.32421875">Key</th><th>Description</th></tr></thead><tbody><tr><td><code>android.permission.INTERNET</code></td><td>Required for retrieving Pointr content, checking the SDK license, uploading position to Pointr Cloud and any other online feature. This key is required even if the server is on an internal network or if you plan on using the SDK mostly offline, as the SDK must check the license and download content from a Pointr Cloud server <strong>at least once.</strong></td></tr><tr><td><code>android.permission.ACCESS_NETWORK_STATE</code></td><td>Checks if the internet is available to be used. The SDK will crash if this permission is removed.</td></tr></tbody></table>

#### **Location permissions**

These permissions are needed to use bluedot or other location-based features, even if you are not using Blutooth beacons. Note that if you ARE using bluetooth beacons for location, the “FINE LOCATION” permission is mandatory, “COARSE LOCATION” is not enough in this case.

| Key                                         | Description                                            |
| ------------------------------------------- | ------------------------------------------------------ |
| `android.permission.ACCESS_COARSE_LOCATION` | Needed for accessing any kind of location information. |
| `android.permission.ACCESS_FINE_LOCATION`   | Needed for accessing GPS and BLE location sensors.     |

#### **Bluetooth permissions**

These permissions are needed to use bluetooth beacons to calculate bluedot position. Note you will need these permissions AND the location permissions.

| Key                                    | Description                                               |
| -------------------------------------- | --------------------------------------------------------- |
| `android.permission.BLUETOOTH_CONNECT` | For devices with Android 12 (Snow Cone) and later.        |
| `android.permission.BLUETOOTH_SCAN`    | For devices with Android 12 (Snow Cone) and later.        |
| `android.permission.BLUETOOTH`         | For devices with Android 11 (Red Velvet Cake) and before. |
| `android.permission.BLUETOOTH_ADMIN`   | For devices with Android 11 (Red Velvet Cake) and before. |

#### **Background location and geofencing permissions**

These permissions are needed for background location of any kind, and to do geofencing, since it requires constant monitoring of positions.

| Key                                             | Description                                                                                                                                                                                            |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `android.permission.ACCESS_BACKGROUND_LOCATION` | Required only when requesting background location access or using Google native Geofencing API. (**Android Q and later**)                                                                              |
| `android.permission.FOREGROUND_SERVICE`         | Necessary for the application start as a foreground service, keep scanning for its location constantly without OS interruption, and to start background service for background location or geofencing. |
| `android.permission.RECEIVE_BOOT_COMPLETED`     | Needed to start Pointr SDK as foreground service after reboot.                                                                                                                                         |

#### **Miscellaneous permissions**

These are miscellaneous permissions added to the SDK by default for your convenience, they can be removed safely if you don’t care for certain features.

| Key                                    | Description                                                                                                                                          |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `android.permission.WAKE_LOCK`         | To keep processing when the application appears “idle”, for example when the user is standing still looking at the screen without touching anything. |
| `android.permission.ACCESS_WIFI_STATE` | needed for assessing if wifi is on.                                                                                                                  |

#### **Removing Permissions**

You might want to remove certain permissions that are not in use. For example you might want to remove `ACCESS_BACKGROUND_LOCATION`, because this permissions is not allowed in the Play Store without a good reason.&#x20;

You can remove permissions by changing your `android.manifest` file, inside the scope `<manifest>`, before `<application>` as below:

```xml
<uses-permission
android:name="android.permission.ACCESS_BACKGROUND_LOCATION"
tools:node="remove" />
```

{% endtab %}
{% endtabs %}


---

# 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/indoor-location-blue-dot/operating-system-permissions.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.
