pbakondy / cordova-plugin-speechrecognition

:microphone: Cordova Plugin for Speech Recognition
MIT License
196 stars 116 forks source link

Periodic error on IOS platform #70

Open Pavel-Durov opened 6 years ago

Pavel-Durov commented 6 years ago

The plugin works within my ionic v1 app, but from time to time I get an error callback.

That happens only on IOS devices for me, no issues on Android platform. It seems like the plugin enters a faulted state, If I leave it idle for about 2 minutes it recovers and gets back to work.

cordova.js error

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

callback errors

"Error Domain=kAFAssistantErrorDomain Code=203 \"Timeout\" UserInfo={NSLocalizedDescription=Timeout, NSUnderlyingError=0x1c0448430 {Error Domain=SiriSpeechErrorDomain Code=100 \"(null)\"}}" cordova.js:1731

"Error Domain=kAFAssistantErrorDomain Code=209 \"(null)\"" (cordova.js, line 1731)

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