Based on Apple's SpeakToMe sample (https://developer.apple.com/library/prerelease/content/samplecode/SpeakToMe/Introduction/Intro.html) I've enabled audio in background modes, but I get the following error inside the resultHandler enclosure from method speechRecognizer.recognitionTaskWithRequest:
Error Domain=kAFAssistantErrorDomain Code=1700 "(null)"
It works fine in foreground. There's no documentation explaining what error 1700 is.
Steps to Reproduce:
-Download https://developer.apple.com/library/prerelease/content/samplecode/SpeakToMe/Introduction/Intro.html
-Enable background mode
-Run startRecording() in background
-Expect for error in "recognitionTask = speechRecognizer.recognitionTaskWithRequest(recognitionRequest, resultHandler: { (result, error)"
Expected Results:
The result object
Actual Results:
The error: Error Domain=kAFAssistantErrorDomain Code=1700