> 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/getting-started/sdk-integration/6.-sdk-status-updates.md).

# 6. SDK Status Updates

You can stay up to date with changes to the SDK's detection status by setting an **SDK status update listener**. SDK status updates are usually triggered by changes to the device state and settings (e.g. airplane mode, location permission, etc). Handling these updates gives you the chance to instruct your user, when applicable, to properly adjust the device settings for optimal SDK detections.

## Checking the SDK Status

{% tabs %}
{% tab title="iOS" %}
To subscribe for SDK status updates:

```swift
Sentiance.shared.setDidReceiveSdkStatusUpdateHandler { status in
    // Handle SDK status updates
}
```

To retrieve the current SDK status:

```swift
let sdkStatus = Sentiance.shared.sdkStatus
```

{% endtab %}

{% tab title="Android" %}
To subscribe for SDK status updates:

```kotlin
Sentiance.getInstance(this).setSdkStatusUpdateListener { status -> 
    // Handle SDK status updates
}
```

To retrieve the current SDK status:

```kotlin
val sdkStatus = Sentiance.getInstance(this).sdkStatus
```

{% endtab %}

{% tab title="React Native" %}
To get SDK status updates **in the background**, add the code the below inside your app's `index.js/ts` file:

```typescript
import SentianceCore, { addSdkStatusUpdateListener } from "@sentiance-react-native/core";

await SentianceCore.ensureInitialized(); // Ensure SDK is initialized

addSdkStatusUpdateListener((sdkStatus) => {
    // Check sdkStatus.detectionStatus to determine whether detections are 
    // running, and if not, check the various status fields to see what 
    // might be blocking the detections.
});
```

If you're only interested in such updates when the app is in the foreground, then place this code inside your UI code.

To retrieve the current SDK status:

```typescript
import { getSdkStatus } from '@sentiance-react-native/core';

const sdkStatus = await getSdkStatus();
```

{% endtab %}

{% tab title="Flutter" %}
To retrieve the current SDK status:

```dart
import 'package:sentiance_core/sentiance_core.dart' 
    show SentianceCore, DetectionStatus;

final sentiance = SentianceCore();
final sdkStatus = await sentiance.getSdkStatus();
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
To find out more about the different SDK Status fields and why detections might be blocked, check out the SDK Status documentation for [iOS](/sdk/api-reference/ios/sentsdkstatus.md) and [Android](/sdk/api-reference/android/sdkstatus.md).
{% endhint %}

{% hint style="success" %}
Congratulations! Your core Sentiance SDK integration is now complete.&#x20;
{% endhint %}

## Next: Feature Integration

To start utilizing the various Sentiance SDK features, head on over to the [feature implementation](/implementing-features/insights.md) section.
