Reputation: 139
I have been working with Cordova, and in terms of functionalities everything works.
The problem is, I see white screen on some browsers, such as browsers except Safari on Apple mobile devices (so Chrome, Firefox and so on). On Macbook Pro I tested Chrome, Firefox, Safari and they work. Unfortunately I could not debug the Chrome or Firefox on iPad/iPhone, but on IntelXDK, I can emulate some devices, and some of them (Microsoft Surface Pro, Lenovo IdeaPad Yoga 13 Ultrabook, Toshiba Satellite Ultrabook) also show me white screen and here is the error:
deviceready has not fired after 5 seconds. cordova.js:1189
Channel not fired: onCordovaReady cordova.js:1182
Channel not fired: onCordovaInfoReady cordova.js:1182
Channel not fired: onFileSystemPathsReady
Do you have any idea what the reason can be? I tried many things, changing the version of the Cordova and plugins, made changes in the code where I call event listener for 'deviceready' but nothing worked.
Cordova version is 5.4.1
Thanks!
Upvotes: 2
Views: 4945
Reputation: 11
I perused the net and discovered on a forum that someone was having a similar problem. It does appear to be an issue with plugins. Here is a link to the forum I found, and a snippet of what the user found had worked. I am sorry, I am still new to JS and can only use the power of googling! Hope it helps!
Just in case anyone else gets this issue I was able to make cordova plugin file works with Android/IOS emulators. Finally, I'm only having above problem with Cordovasim. Currently I'm using following packages versions:
- apache plugin org.apache.cordova.file 1.3.3 "File"
- ngCordova $cordovaFile to use easier the plugin
- cordova platforms android 3.7.1, ios 3.7.0
Upvotes: 1