appIsNotActive is a SukiAmbientCoreError case. Recording cannot start while the app is in the background. iOS does not allow apps to begin audio recording from the background in this flow.
Common causes:
- Start recording runs from a background task, notification action, or delayed callback after the user left the app
- Lifecycle code starts recording while the scene is inactive
Catch and recover
Match the case name in yourSukiAmbientCoreError handler:
Swift
Fix
1
Catch appIsNotActive
Handle
appIsNotActive specifically. Ask the clinician to return the app to the foreground before recording.2
Start Only When Active
Call start or resume recording only when the app is in the foreground and active.
3
Retry After Foreground
When the app becomes active again, retry start. Do not call start from a background context.
Next steps
Mobile SDK error messages - FullSukiAmbientCoreError case list
Mobile SDK troubleshooting FAQs - AppIsNotActive recording FAQ
Session management FAQs - Background recording and session errors
micIsInUse on Mobile SDK - Microphone held by another app
Microphone permission denied - Browser mic permission failures