Deviceready did not fire within 2000ms after running "ionic plugin add cordova-plugin-crosswalk-webview"


#1

Hi All,

After i install the cordova-plugin-crosswalk-webview plugin i am getting the following in a chrome remote debugging console and obviously anything i put int platform.ready().then() will not fire.

I can reproduce this very easily by doing the following:

ionic start myTutorial tutorial --v2
cd myTutorial
ionic plugin add cordova-plugin-crosswalk-webview
ionic run android

I will then be presented with the following when the app launches (in a remote debugging session)

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.
deviceready has not fired after 5 seconds.
Channel not fired: onCordovaInfoReady

Running on a device with android 5.0.1.

There a few mentions of this happening in these forums and else where on the web but no definitive answer, i think this scenario is as basic as it can get, is there a solution for this?

Plugins:
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-crosswalk-webview 2.1.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
ionic-plugin-keyboard 2.2.1 “Keyboard”

Versions:
Cordova - 6.4.0
Ionic CLI - 2.1.4
Ionic-angular - 2.0.0-rc.2
Ionic-native - 2.2.3


#2

I have the same issue. Have you found a working solution?


#3

Following the instructions from this JIRA link https://crosswalk-project.org/jira/browse/XWALK-7422 I managed to get a working version of the Crosswalk by adding the plugin from Github as opposed to npm by running the following command:

cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

However, I do still get the same error logged, but the deviceready does eventually fire and everything seems to work well so far.

deviceready has not fired after 5 seconds. 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. DEVICE READY FIRED AFTER 17930 ms