What does SukiAuthManager require at minimum?
What does SukiAuthManager require at minimum?
Required
partnerIdpartnerToken
environment(for example"staging"or"production")autoRegisterloginOnInitialize
partnerId or partnerToken block iframe initialization, as noted on those pages and in Prerequisites.What is fieldId?
What is fieldId?
fieldId is a stable, unique string that names one dictation session. Every callback returns it together with text so you know which field the result belongs to.It does not have to match a DOM id, but using the same string as your input’s id is a simple pattern.Naming examples and guidance: Configuration (Field IDs in practice) and Callbacks.Why is onSubmit important?
Why is onSubmit important?
onSubmit runs when the user commits the transcript. If you omit it, dictation often closes immediately after the user acts, so production integrations should always implement it.Read Configuration and Callbacks for the full callback contract.What is rootElement used for?
What is rootElement used for?
rootElement is the DOM node where the SDK mounts the dictation iframe. The iframe sizes to that container, so the node should have real width and height.Layout: Wrapper markup and CSS patterns are described under Wrapper layout on the Configuration page. In-field mode and Error handling cover related layout issues.React: Some examples omit rootElement; the React integration guide explains when the minimal pattern skips it and when to pass it (including refs in real apps). Configuration examples includes sample wiring.Where do I start if dictation never appears or the layout looks wrong?
Where do I start if dictation never appears or the layout looks wrong?
Work through checks in this order:
- Runtime: Browser-only use, correct timing (call after the DOM and container exist and have size).
- Layout:
rootElement(when used), height, and CSS. - Auth and CSP: Valid partner credentials and any CSP rules that affect iframes.
- Configuration and callbacks: AuthConfig, ShowOptions, and a working
onSubmit.