Ionic app is slow in android 4.4.2 and below even after installing crosswalk plugin

I building an app with ionic 3.

I have installed crosswalk, and enabled production mode in angular

import { enableProdMode } from ‘@angular/core’;
enableProdMode();

Also I ran the app with the following command
ionic cordova run android --prod

Performance in android versions 4.4.4 and above is good.

But in android versions 4.4.2 and below it is still very slow, PRACTICALLY UNUSABLE, even after installing crosswalk.
Is there anything else that I need to do to improve performance in android versions 4.4.2 and below.

Here is my output of ionic info:

@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.0.2
Cordova Platforms  : android 6.2.3 browser 4.1.0
Ionic Framework    : ionic-angular 3.5.3

System:

Node : v6.11.0
npm  : 3.10.10
OS   : Windows 10

PLEASE HELP

Don’t mix this with the --prod flag. Just use --prod.

Crosswalk won’t make things go faster, It just makes things look nicer.

What kind of slowdown are you seeing?

1 Like

As @AaronSterling wrote, no need to mess with enableProdMode manually. This is all taken care of with --prod.

You should update this to a current version.

Please provide more information what your app is doing and what exactly is actually slow.

@sujan, AND @AaronSterling - I did like you said, I uninstalled and installed the latest app-scripts

@ionic/app-scripts : 2.1.4 - now this is my version. STILL IT IS SLOW, I did not find any improvement.

For Example: my app starts with a login screen

When I type something, it takes 10 seconds to display what i typed in the textbox.
It is very laggy, that what i mean.

After logging in - When i press the sidemenu icon, its open after 5-10 seconds.

Likewise animations, page transitions, everything is slow.

This problem i face only in android version 4.4.2 and below. The above versions are working perfectly.

People said in the forums, that installing crosswalk will support all lower version as well, but it is not supporting for me

Thats why I was wondering, If I should be something more to improve the performance.

I even tried this simple thing. - I started the basic ionic sidemenu project

ionic cordova start testProject sidemenu

I installed crosswalk. I build the project in production, even this simple project was slow in android version 4.4.2

I DONT KNOW WHAT TO DO NOW.

How many components you have?
Have you tried to remove plugins?
Are you using lazy loading?
Have you tried to create a simple app and run that to check the performance?

1 Like

have you tested on other devices ? i think its a hardware problem …
also add --release to the build