Not visualizing correcty Onsen 2.0 in Android <=4.2.2



  • Hi,
    I have an app that everything is shown ok in iPhones and Android>4.2.2 but at this and lower versions of Android it seems that it’s not loading the classes correctly in each onsen tag. It’s difficult to know how to correct because in Android Studio+Chrome I can’t debug/inspect the device because it is only available in versions higher than 4.2.2.

    Any solution?

    What has to be shown
    1_1484523448993_Captura de pantalla 2017-01-16 a les 0.36.38.png

    What is shown in Android<=4.2.2
    0_1484523448992_Captura de pantalla 2017-01-16 a les 0.34.20.png


  • Onsen UI

    @angelcasellas Hi, sorry for the late reply!

    We officially support Android 4.4+ and lower versions with Crosswalk plugin.

    However, most of the features should still work even without Crosswalk and, since I know it’s quite heavy, we’ll be willing to fix specific bugs for older versions if possible.

    I’m guessing that for Android 4.2 your app crashes at some point (perhaps due to an incompatibility in a component) and after that, the rest of the DOM is not computed properly.

    However, we cannot do too much apart from guessing if we don’t know what’s going on in the code. If you want to debug, I’d recommend giving a try to Monaca Debugger, which you can use together with Monaca CLI (Onsen UI tooling). I believe there’s no limitation for Android versions and it’s all free.

    Just a common issue that some users have. Are you nesting somehow ons-template component? It should be used only in index.html at the top level, right inside body.



  • Hi, thank you for the answer.
    The fact is that in Android 4.2.2 and older versions the onsen classes are not placed to the dom components correctly. To “adapt” the app for this versions we had to put the classes manually and the result had been more and less correct. It had been very annoying because we could not debug the app due to for this android versions the debugger is not available in Genymotion nor Android Studio simulator and we were blind. The only way had been with javascript alerts of the html code and then we could see minimally what code had been generated.

    Do you plan offering support on this android versions?

    Thanks.


  • Onsen UI

    @angelcasellas Sounds certainly tedious.

    I don’t think we will add support officially again. The main issue is testing. We test in some old versions of Android before releasing but we cannot do it exhaustively. As I said, most of the features should be working (we stopped the official support kind of recently) and Crosswalk plugin is also available for these versions.


Log in to reply