pbakondy / cordova-plugin-speechrecognition

:microphone: Cordova Plugin for Speech Recognition
MIT License
197 stars 117 forks source link

Periodic error on IOS platform #69

Closed Pavel-Durov closed 6 years ago

Pavel-Durov commented 6 years ago

The plugin works, but from time to time I get error callback with the following error:

cordova error:

Error in Error callbackId: SpeechRecognition1097749174 : TypeError: null is not an object (evaluating 'this.observers.length = 0') callbackFromNative — cordova.js:311

Error callback data

"Error Domain=kAFAssistantErrorDomain Code=203 \"Retry\" UserInfo={NSLocalizedDescription=Retry, NSUnderlyingError=0x1c06477a0 {Error Domain=SiriSpeechErrorDomain Code=1 \"(null)\"}}"

Or

"Error Domain=kAFAssistantErrorDomain Code=209 \"(null)\"" = $1

That happens only on IOS devices for me, Android seems to be working just fine.

It seems like the plugin enters a faulted state, If I leave it idle for about 2 minutes it gets back to work....

IOS Version: 11.2.6 cordova: 4.5.4 ionic: 3.6.0 cordova-plugin-speechrecognition: 1.2.0

Pavel-Durov commented 6 years ago

duplicate of https://github.com/macdonst/SpeechRecognitionPlugin/issues/88