I'm trying to Speech Recognition plugin with ionic3 and I'm keep getting this error
Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.
I'm running this in my devise (iPhone iOS 10.1), with command ionic cordova run ios -l
I've gone through some SO questions / ionic forum questions and tried reinstalling all the plugins, reinstalling platform (ios) + plugins as they suggested but still no luck.
Following is my class
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { SpeechRecognition } from '@ionic-native/speech-recognition';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
speechList: Array<string> = [];
constructor(private speach: SpeechRecognition, public navCtrl: NavController) {
}
async getPermission():Promise<void> {
console.log('abc1');
try{
const permission = await this.speach.requestPermission();
console.log(permission);
return permission;
} catch (e){
console.log(e);
}
}
listenForSpeech():void {
this.speach.startListening().subscribe(data => this.speechList = data,
error => console.log(error)
)
}
}
and following is my ionic info
global packages:
@ionic/cli-utils : 1.2.0
Cordova CLI : 7.0.0
Ionic CLI : 3.2.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.3.0
System:
Node : v7.10.0
OS : OS X El Capitan
Xcode : Xcode 7.3.1 Build version 7D1014
ios-deploy : 1.9.1
ios-sim : 5.0.8