[Warning] Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them. (app.bundle.js, line 63826)

Hello,

ive a little problem running my app on an IPad (Remote Build). I get the Message above. Anything seems to work fine except Facebook.

It looks like that the Facebook4-Plugin isnt loaded within 2seconds.

Ive done all serviceprocessses within my this.platform.ready() since those may take a while

export class SplashPage {

constructor(public nav:NavController, public platform:Platform, public syncService:SyncService, public sqlService:SqlService, public http:Http) {
    this.platform.ready().then(() => {   console.log("trying to sync");   ///all my stuff }
} 

I get these informations aswell.

[Log] deviceready has not fired after 5 seconds. (cordova.js, line 1119)
[Log] Channel not fired: onPluginsReady (cordova.js, line 1112)
[Log] Channel not fired: onCordovaReady (cordova.js, line 1112)
[Log] DEVICE READY FIRED AFTER (2) (console-via-logger.js, line 173)

Any Idea what may be faulty? Im not sure if its the Facebook-Plugin since it doesnt show the faulty plugin.

4 Likes

I have this error too from adb logcat… any idea?

Anyone find a fix for this? I’m getting the same error when deploying to ios 10.0.2 using ionic2-native-facebook-login.

Try reseting all plugins. Run this command:

ionic state reset – plugins

2 Likes

Don’t run the ionic state reset --plugins unless you want to blow away your platforms and have to readd them.

3 Likes

Anyone found out how to solve this?

I also get this error. Doing an ionic state reset did not fix the problem.

I also get some possibly-related message boxes popping up when the app starts, i.e.,

gap_init:3

gap:[0,"CoreAndroid","messageChannel","CoreAndroid110450919"]

gap:[0,"CoreAndroid","show","CoreAndroid110450920"]

gap:[0,"Keyboard","init","Keyboard110450921"]

gap:[0,"Device","getDeviceInfo","Device110450922"]

gap:[0,"StatusBar","_ready","StatusBar110450923"]

All pop up in sequence when i do an Ionic Serve. So far I can’t seem to actually find anything wrong with the app, though.

Has anyone found a fix for this? This is still an issue for me on android and it shows the splash screen for about 10sec. To me it looks like its a problem with the sqlite plugin.

Exactly, that is the most stupid advice, I lost my keystore because of this. Reset will destroy everything. It will not reinstall the plugins from newest versions.

1 Like

I have tried removing and re-adding all of the plugins and I am still getting the issue…

Example removal:
ionic plugin rm cordova-plugin-splashscreen

Example re-adding:
ionic plugin add cordova-plugin-splashscreen

Still show this in console:

main.js:41237 Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.

cordova.js:1223 deviceready has not fired after 5 seconds.

main.js:41232 DEVICE READY FIRED AFTER 4040 ms

Anyone got any suggestions?

1 Like

So ??
did anyone find the answer ??

1 Like

I’m facing the same problem!
console.warn: 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.

1 Like

Same problem. Seeing this only on the android side. Android 5+.
Bump

3 Likes

I believe that I found that by using the –prod flag when running it removes this issue.

ionic run android --prod

Hope this helps.

1 Like

I am still having this problem as well… Here are my logs from xcode:

objc[30513]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x106960cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1066d66f0). One of the two will be used. Which one is undefined.
2017-05-10 14:30:49.207 myapp[30513:2916975] Apache Cordova native platform version 4.4.0 is starting.
2017-05-10 14:30:49.208 myapp[30513:2916975] Multi-tasking -> Device: YES, App: YES
2017-05-10 14:30:49.270 myapp[30513:2916975] Using UIWebView
2017-05-10 14:30:49.271 myapp[30513:2916975] [CDVTimer][handleopenurl] 0.075042ms
2017-05-10 14:30:49.274 myapp[30513:2916975] [CDVTimer][intentandnavigationfilter] 2.712965ms
2017-05-10 14:30:49.275 myapp[30513:2916975] [CDVTimer][gesturehandler] 0.083983ms
2017-05-10 14:30:49.275 myapp[30513:2916975] CDVPlugin class CDVSplashScreen (pluginName: splashscreen) does not exist.
2017-05-10 14:30:49.275 myapp[30513:2916975] [CDVTimer][splashscreen] 0.253022ms
2017-05-10 14:30:49.275 myapp[30513:2916975] CDVPlugin class CDVStatusBar (pluginName: statusbar) does not exist.
2017-05-10 14:30:49.276 myapp[30513:2916975] [CDVTimer][statusbar] 0.240982ms
2017-05-10 14:30:49.276 myapp[30513:2916975] CDVPlugin class IonicDeploy (pluginName: ionicdeploy) does not exist.
2017-05-10 14:30:49.276 myapp[30513:2916975] [CDVTimer][ionicdeploy] 0.235975ms
2017-05-10 14:30:49.276 myapp[30513:2916975] CDVPlugin class IonicKeyboard (pluginName: keyboard) does not exist.
2017-05-10 14:30:49.276 myapp[30513:2916975] [CDVTimer][keyboard] 0.163972ms
2017-05-10 14:30:49.277 myapp[30513:2916975] [CDVTimer][TotalPluginStartup] 5.156040ms
2017-05-10 14:30:49.623 myapp[30513:2916975] Resetting plugins due to page load.
2017-05-10 14:30:50.688 myapp[30513:2916975] CDVPlugin class CDVDevice (pluginName: Device) does not exist.
2017-05-10 14:30:50.689 myapp[30513:2916975] ERROR: Plugin ‘Device’ not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2017-05-10 14:30:50.689 myapp[30513:2916975] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = [“Device1365842606”,“Device”,“getDeviceInfo”,[]]
2017-05-10 14:30:50.716 myapp[30513:2916975] CDVPlugin class CDVConnection (pluginName: NetworkStatus) does not exist.
2017-05-10 14:30:50.717 myapp[30513:2916975] ERROR: Plugin ‘NetworkStatus’ not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2017-05-10 14:30:50.718 myapp[30513:2916975] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = [“NetworkStatus1365842607”,“NetworkStatus”,“getConnectionInfo”,[]]
2017-05-10 14:30:50.718 myapp[30513:2916975] CDVPlugin class CDVStatusBar (pluginName: StatusBar) does not exist.
2017-05-10 14:30:50.718 myapp[30513:2916975] ERROR: Plugin ‘StatusBar’ not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2017-05-10 14:30:50.719 myapp[30513:2916975] -[CDVCommandQueue executePending] [Line 142] FAILED pluginJSON = [“StatusBar1365842608”,“StatusBar”,"_ready",[]]
2017-05-10 14:30:51.207 myapp[30513:2916975] Finished load of: file:///Users/tyler/Library/Developer/CoreSimulator/Devices/DA2E648A-9C22-4AF4-84B7-32974C0E0042/data/Containers/Bundle/Application/00392CE0-26B3-4B2A-8C10-E95A5E3F7EE1/US%20Conference%20Of%20Mayors.app/www/index.html

@seiboldsoft i am facing same problem , did you get solution?

same problem here nay help please

  1. If your app has a content security policy in index.html (anywhere, I guess) it might be causing it. There are edits you can make that fix it. It’s happened to me before, but I can’t recall the fix exactly. It may also be related to either allowing navigation or intents in config.xml.

  2. An ionic community poster said this a while back too

"When you develop a hybrid application with PhoneGap, Cordova, Ionic, CordovaChromeApps and any other framework that is built on top on PhoneGap, I can almost assure you that you’ll get this error. And it’s super annoying.

I think the issue is when you delete your platforms folder, or the files inside, and do a platform add … afterwards. This is at least how I reproduced it.

You’ll need to:

add the platforms with cordova platform add ios android

remove them with cordova platform remove ios android

add them again.

I know this is super weird, but I think it’s related to a faulty android.json and ios.json inside the platforms folder."

3: Both splashbar and statusbar (if I’m right on the names) don’t work unless the app is published. If it’s a dev environment, you’ll get that response often. It’s because Cordova.js isn’t being accessed. It won’t work while developing. If it’s not effecting anything else, it’s normal. Deleting the onDeviceReady function might fix it. Replace it when publishing your app.

If in a dev environment (happened to me alot on Visual Studio), I think #3 is a really likely cause. I’m sorry I don’t have the actual answer. It’s been a while and I just can’t recall. If you look into those possibilities though, you’ll find the answer.

this helped me a lot
thank you :smiley:

No problem at all. Happy to help.