I want to reset my platform and plugins because it is giving
me this error that device not fired within 5000ms . Please reinstall your ionic/native plugins.
I am running this command but I am getting this error
[ERROR] ionic state has been removed as of CLI 3.0
Ionic Info
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : ios 4.3.1
Ionic Framework : ionic-angular 3.6.1
System:
ios-deploy : 1.9.2
Node : v6.11.3
npm : 5.4.1
OS : macOS High Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
If you want to regenerate your native projects, just remove the platforms and re-add them again. This will also create new installations of the plugins.
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 also tried this
ionic cordova prepare
but this also didn’t help
So I want to reinstall my plugins through a command
manually it will take so much time.
Well, the old command doesn’t exist any more as plugins are handled differently by Cordova since a few versions. You will have to either use the commands I posted above or do it manually. (Or really debug your actual problem)
I removed all the plugins manually and installed them again but still it is giving me error that
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.