I’m working on a ionic v3 app which were actually already working on ios and android.
Suddenly in the native android app the style is broken. It seems, that some css stylings are not applied.
I’ve tried already lot of things:
tried on different android device
debug and prod build
build locally and via ionic pro
remove add android platform
upgrade cordova-plugin-ionic-webview to 2.1.0
No success.
No error in build process identified.
Screenshots:
This is from ionic serve and OK (looks also good on iOS device)
Sure. Thanks! I’ll run through it and send it across.
Btw. the style is broken in the DevApp on Android device as well.
This is logged in the console: (maybe it helps)
[app-scripts] [18:25:05] console.log: deviceready has not fired after 5 seconds.
[app-scripts] [18:25:05] console.log: Channel not fired: onDOMContentLoaded
[app-scripts] [18:25:28] console.log: Ionic Pro initializing (app id: %c3e58f324%c) color: blue color: black
[app-scripts] [18:25:29] console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
[app-scripts] mode.
[app-scripts] [18:25:30] console.log: Ionic Native: deviceready event fired after 1322 ms
[app-scripts] [18:25:30] console.error: Error loading deploy information. [object Object]
Well, the main.css in the apk is compressed. Un-zipped it is around 34 MB. So quite normal. I assume that it might be a problem with the webview, because in DevApp on Android the style/css is broken as well.
Let’s wait for the response and support from Mike @mhartington.
Reducing the CSS to around 1,5MB solved my issue. I’ve accomplished that with removing (lots of) unnecessary entries in the color map in variables.scss.