i’m working on an app for teachers. When i test my app on an ios device or my tablet, that runs android 4.2, everything is ok. But on my nexus 5 it is really sloppy and slow, even on extrem short pages.
So there could be a few things going on here.
Android in general is a bit choppy and can be problematic.
Can you post a sample of something close to what you have?
Also what version of ionic are you using? Beta 13 or the nightly builds?
Hey there,
thanks for the fast response. I’ve created a small example. You find it here: https://github.com/nbussman/IonicListLagAndroid
I think i’m using the latest version of ionic (CLI v1.2.12)
Hope you can help me and many thanks for your commitment
If you running anything on a 4.3 or below device, you’re going to get some choppy performance because of the webview.
Those version of android are notorious for having bad webviews.
What has seemed to solve many issues is using crosswalk in an android app.
It’s not the webview, it’s ion-content and ion-list. I’ve got a list of more than 400 items populated by using ng-repeat in a list inside a 4.0.4 app and it’s as smooth as on desktop chrome. I’ve just needed to remove ion-content and replace it with div overflow + unbinding things that don’t need to be binded. AS you can see below there’s also quite complicated expression for ng-show for each item and this is still smooth.
Webview isn’t that bad. I’ve got good results with simple apps. However crosswalked apps start longer and have siginfically bigger binaries. Not much speed increase in simple apps. It is just not worth to add 15-20 MB of Chrome to an app which only task is to present simple master/details views and do some rest calls. Different story is with canvas apps like games. Cheers, Rafal
Thank for your quick reply.
I did like it before but my app in android doesn’t have scroll and cannot swipe down. I read some guide and they said app should use some other thirst party scrolling.
Currently, I have list with over 1000 items, so I do a workaround by using infinitescroll to load 20 items per time from array. However, I still like the way loading all items to list
Strange, I have no problem to scroll on android div + overflow-y set to scroll. There’s only no scrolling handle (scrollbars) but this is not a big issue. I suppose the articles you refer to are covering this very topic, not the scrolling. Maybe you have some bugs in your css.