How do I install the Mobile SDK in my iOS project?
How do I install the Mobile SDK in my iOS project?
Follow these steps to install the SDK:
- Download the
SukiAmbientCore.frameworkfile from Suki - Drag the framework into your Xcode project navigator
- Select “Copy items if needed” when prompted
- In your target settings, set the framework to “Embed & Sign”
- Add
NSMicrophoneUsageDescriptionto your Info.plist
What should I put in the NSMicrophoneUsageDescription?
What should I put in the NSMicrophoneUsageDescription?
You must provide a clear explanation of why your app needs microphone access. Here’s a recommended description:Provide a clear, user-friendly explanation that describes why your app needs microphone access for clinical documentation purposes.Apple requires this description to be user-friendly and explain the specific use case for microphone access.
How do I configure the SDK after installation?
How do I configure the SDK after installation?
Configuration involves three main steps:Configuration involves three main steps: importing the SukiAmbientCore framework, setting the environment (stage or prod), and initializing the SDK with partner information, session delegate, and token provider.
What environments are available for testing?
What environments are available for testing?
The Mobile SDK supports multiple environments:
.stage: For development and testing purposes.prod: For production use
.stage environment during development and testing before moving to production.Do I need to implement TokenProvider protocol?
Do I need to implement TokenProvider protocol?
Yes, you must implement the
TokenProvider protocol to provide authentication tokens to the SDK. The SDK will request tokens through this protocol when needed.You must implement the TokenProvider protocol to provide authentication tokens to the SDK. The SDK will request tokens through this protocol when needed for API authentication.Can I test the SDK without a backend integration?
Can I test the SDK without a backend integration?
The Mobile SDK requires a valid authentication token and partner configuration to function. You’ll need to work with Suki’s partnership team to get the necessary credentials for testing, even in the staging environment.
What happens if initialization fails?
What happens if initialization fails?
If initialization fails, the SDK will throw a
SukiAmbientCoreError. Common causes include:- Invalid partner information
- Network connectivity issues
- Authentication token problems
- Missing required permissions
Should I initialize the SDK on app launch or when needed?
Should I initialize the SDK on app launch or when needed?
It’s recommended to initialize the SDK after user authentication is complete. You can do this in your app delegate’s
didFinishLaunchingWithOptions if user sessions persist, or after successful login if they don’t.