Error Domain = kAFAssistantErrorDomain Code = 1700 "(null)"

My app is Bluetooth supportive, I need to use under background mode.


I've already checked 'use Bluetooth LE accessories',

so it seems workable under the background mode.


I want to record, thus I need speech recognition by using Speech Kit.

But I found that it can work only under the foreground.


Once my app is back to the background mode,

it shows immediately and directly an error message as:

Error Domain = kAFAssistantErrorDomain Code = 1700 "(null)"


Is there anything I have missed or is it the limitation that iOS doesn't support Speech Kit under background mode?

I know that this is an old question, but in case anyone stumbles across it, note that this error doesn't happen only when the app is backgrounded. My speech recognition code works perfectly fine in an ordinary Swift app, but when I tried to use it in a new SwiftUI app, I get this 1700 error immediately at startup (in the simulator).

I have the same problem. The speech recognizer can not work under the background mode. Did you solve the problem?

Error Domain = kAFAssistantErrorDomain Code = 1700 "(null)"
 
 
Q