Skip to main content

Add the package

flutter pub add clariodesk
Or in pubspec.yaml:
dependencies:
  clariodesk: ^0.1.0

Platform requirements

PlatformMinimumHardware key
iOS13.0Secure Enclave when present, else software Keychain
AndroidAPI 23 (Marshmallow)StrongBox when supported, else TEE Keystore

Android

Set minSdkVersion 23 (or higher) in android/app/build.gradle:
android {
  defaultConfig {
    minSdkVersion 23
  }
}

iOS

Set the platform in ios/Podfile:
platform :ios, '13.0'
If you let users attach photos, videos, or files (see Attachments), add the usage strings to ios/Runner/Info.plist:
<key>NSPhotoLibraryUsageDescription</key>
<string>Attach screenshots to your support messages.</string>
<key>NSCameraUsageDescription</key>
<string>Take a photo to attach to your support messages.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Record video to attach to your support messages.</string>

Verify

await ClarioDesk.init(apiKey: 'pk_live_…');
// init completing without throwing means the device registered (or reused an
// existing key). Next, wire identity — see the lifecycle guide.

Next: lifecycle integration

Wire the four host events that touch the SDK.