Cordova 3.5 deviceready event not fired after 5 seconds

一世执手 提交于 2019-12-04 10:24:32

Same issue. Try to remove/update the File plugin, (org.apache.cordova.file) it's worked for me. OnFileSystemReady is an event of that plugin.

Something else I found, try adding a sdcard to your emulator

I found my initial error was the file plugin was not being allowed to access a file space, this was because it didn't exist in the emulator, I added an external card to the emulator definition and hey presto it worked

Did solve the same issue by uninstalling cordova.file plugin (and all plaugins that using it), uninstall platform, upgrade cordova to v4 and install all plugins back

Just wanted to add I encountered this issue today with cordova 4.0.0 I suspect this happens with more than just the File plugin because my problem was with Network information plugin (org.apache.cordova.network-information)

Back story: I had copied the project to a new folder and copied over the plugins/ directory (I knew not to copy platforms from a previous mistake). This made it so the app was loading in chrome correctly and building correctly but showing a white screen on my device. Debugging by going to chrome://inspect/#devices and looking at console logs I saw that it was because the device ready event was not firing after 5 seconds.

Fix: I removed the plugins with cordova plugin remove org.apache.cordova.network-information and re-added it with cordova plugin add org.apache.cordova.network-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!