For the complete documentation index, see llms.txt. This page is also available as Markdown.

6. SDK Status Updates

Learn how to monitor the SDK's status and respond to changes, ensuring permissions and configurations remain properly set up over time.

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

To subscribe for SDK status updates:

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

To retrieve the current SDK status:

let sdkStatus = Sentiance.shared.sdkStatus

To find out more about the different SDK Status fields and why detections might be blocked, check out the SDK Status documentation for iOS and Android.

Next: Feature Integration

To start utilizing the various Sentiance SDK features, head on over to the feature implementation section.

Last updated