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.
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.
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.
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.
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
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.
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.