> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/a-complete-integration/react-native-quick-start/4.-usage.md).

# 5. Enabling Detections

After creating a Sentiance user, you can enable SDK detections. This will allow the Sentiance SDK to run in the background, and intelligently detect a user's real-world movements, while collecting sensor, location, and motion activity data.

```javascript
import { enableDetections } from '@sentiance-react-native/core';
try {
    const result = await enableDetections();
    console.log(`SDK detection status is now ${result.detectionStatus}`);
} catch(e) {
    console.log('Failed to start detections: ' + e);
}
```

After detections are successfully enabled, you can determine whether the SDK is able to detect, by checking the detection status:

```kotlin
const detectionStatus = result.detectionStatus;

switch() {
    case 'ENABLED_AND_DETECTING':
        // Detections are enabled and running
        break;
    case 'ENABLED_BUT_BLOCKED':
        // Detections are enabled but blocked
        break;
    default:
        // Detections weren't enabled
}
```

If detections are blocked, you can check the SDK status to see what's blocking them. Usually, this is caused by insufficient permissions or a disabled location tracking.

{% hint style="info" %}
**Enabling Detections Is Persistent**

When you enable detections, the SDK will remember this and automatically enable them the next time the app restart. Therefore, you do not need to enable them every time. You only need to make sure that you are [properly initializing the SDK](/a-complete-integration/react-native-quick-start/initialization.md) during every app startup.
{% endhint %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sentiance.com/a-complete-integration/react-native-quick-start/4.-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
