Ionic application can not work well in android 4.2

I created a new application with ionic2 using default template.It can work perfect in android 4.4 or above. but it can not work well in android 4.2. It show a white background, and that’s all.
The error message is:

       02-24 13:53:06.189 21574-21574/com.ionicframework.testproject4897219 E/Web Console: EXCEPTION: Error in ./TabsPage class TabsPage - inline template:0:0 caused by: Object [object global] has no method '__zone_symbol__requestAnimationFrame' at file:///android_asset/www/build/main.js:51940
     02-24 13:53:06.191 21574-21574/com.ionicframework.testproject4897219 E/Web Console: ORIGINAL EXCEPTION: Object [object global] has no method '__zone_symbol__requestAnimationFrame' at file:///android_asset/www/build/main.js:51942
    02-24 13:53:06.192 21574-21574/com.ionicframework.testproject4897219 E/Web Console: ORIGINAL STACKTRACE: at file:///android_asset/www/build/main.js:51945
     02-24 13:53:06.194 21574-21574/com.ionicframework.testproject4897219 E/Web Console: TypeError: Object [object global] has no method '__zone_symbol__requestAnimationFrame'
                                                                                    at Platform.raf (file:///android_asset/www/build/main.js:1953:59)
                                                                                    at (file:///android_asset/www/build/main.js:6335:18)
                                                                                    at NavControllerBase._trnsStart (file:///android_asset/www/build/main.js:28513:28)
                                                                                    at MDTransition._trnsStart (file:///android_asset/www/build/main.js:28435:19)
                                                                                    at MDTransition.Transition.start (file:///android_asset/www/build/main.js:13143:33)
                                                                                    at MDTransition._trnsStart (file:///android_asset/www/build/main.js:28437:35)
                                                                                    at MDTransition.Transition.start (file:///android_asset/www/build/main.js:13143:33)
                                                                                    at Tab.NavControllerBase._transition (file:///android_asset/www/build/main.js:28452:24)
                                                                                    at Tab.NavControllerBase._postViewInit (file:///android_asset/www/build/main.js:28314:18)
                                                                                    at Tab.NavControllerBase._viewTest (file:///android_asset/www/build/main.js:28401:25) at file:///android_asset/www/build/main.js:51946

and my ionic develop info:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: OS X El Capitan
Node Version: v6.9.4

I don’t want to use crosswalk. It will cause my app size too big, and it also can not cover all android phones with 4.2 os . Is there any other solution ?

Ionic 2
Ionic 2 is focused on building both native/hybrid apps through Cordova, as well as adding the ability for Progressive Web Apps and Electron .

The following OSs and browsers are supported:

iOS 8+
Windows 10 Universal App
Android 4.4+
Support can be pushed back to 4.1 if Crosswalk is used with Cordova
1 Like

I don’t know why ionic2 does not support android os level below 4.4. Cordova can support min sdk is 16. Has some change in ionic2 ?

nope. but android introduced the capsulted webview with android 4.4 or 4.3 i think
So android devices with version 4.4+ get updates of the webview over the playstore. means also older device have the power of newer webview versions. :wink:

So older Android Versions will miss some required features/performance and so on.

Crosswalk build your app with an integrated newer webview. That is why the crosswalk builds are much bigger.

Thanks bengtler. But There is a long white background when start the ionic app first time. I Really have no idea to resolve it. Does someone has any suggestion?

You may want to check out this thread.
Try using crosswalk