So I’m just getting started with Ionic, and I’ve run into the problem that
deviceready doesn’t fire (in time), which seems kinda wide spread, at least I could find quite a lot of topics about it all over the net.
I’ve installed a new blank app via
ionic start test blank, then I ran it via
ionic serve -c --no-open, and finally opened it in the Android Ionic DevApp. The app will open after a few seconds, but the
ready() code won’t run.
> ionic serve -c --no-open
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --consolelogs
–nobrowser - Ctrl+C to cancel
[00:18:28] watch started …
[00:18:28] build dev started …
[00:18:28] clean started …
[00:18:28] clean finished in 7 ms
[00:18:28] copy started …
[00:18:28] deeplinks started …
[00:18:28] deeplinks finished in 21 ms
[00:18:28] transpile started …
[00:18:31] transpile finished in 3.28 s
[00:18:31] preprocess started …
[00:18:31] preprocess finished in 2 ms
[00:18:31] webpack started …
[00:18:31] copy finished in 3.45 s
[00:18:37] webpack finished in 6.17 s
[00:18:37] sass started …
[00:18:38] sass finished in 1.01 s
[00:18:38] postprocess started …
[00:18:38] postprocess finished in 7 ms
[00:18:38] lint started …
[00:18:38] build dev finished in 10.66 s
[00:18:39] watch ready in 10.73 s
[00:18:39] dev server running: http://localhost:8100/
[OK] Development server running!
External: http://192.168.2.101:8100, http://192.168.56.1:8100, http://192.168.13.1:8100, http://18.104.22.168:8100,
http://169.254.249.34:8100, http://192.168.144.1:8100, http://192.168.91.1:8100, http://192.168.21.1:8100
DevApp: test@8100 on admin-PC
[00:18:41] lint finished in 2.78 s
[00:18:53] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
[00:18:54] console.log: deviceready has not fired after 5 seconds.
[00:18:54] console.log: Channel not fired: onFileSystemPathsReady
[00:18:56] console.warn: Ionic 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’ve read a bunch of topics about this, but most of them seem to be about running the app via
ionic run ..., and all the suggestions like adding/removing a content security policy, adding/removing/adding platforms do not fix the problem for me.
It should also be noted that I do not have any (additional) plugins installed, as it’s just the blank app template, so the suggestion in the warning message isn’t applicable.
So, what is this all about, is there a proper solution for this? Is there a way to debug this further on my end?
> ionic info
cli packages: (C:\Users\admin\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.18.0 ionic (Ionic CLI) : 3.18.0
@ionic/app-scripts : 3.1.2 Ionic Framework : ionic-angular 3.9.2
Node : v8.9.1 npm : 5.3.0 OS : Windows 7
backend : pro
OS: OxygenOS 3.1.4