Does Angular 2 really support Android 4.1 Webview?

926 views
Skip to first unread message

Vidar Skauge Ramdal

unread,
Dec 21, 2015, 7:21:00 AM12/21/15
to AngularJS
From https://angular.io/features.html we read that Angular 2 is supported on the "latest versions of Chrome, Edge, Firefox, IE, and Safari, Angular 2 is also tested for older browsers including IE9+ and Android 4.1+.".

However, when testing an Angular 2 app on a Motorola TC55, which runs Android 4.1, we get an error saying "TypeError: Object [objectDOMWindow] has no method 'requestAnimationFrame'.

The requestAnimationFrame method seems to be supported only on Android 4.4+, as per https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame.

Which is correct? Does Angular 2 rely on window.requestAnimationFrame to be present? If so, how can Angular 2 support Android 4.1?

Vidar Skauge Ramdal

unread,
Dec 21, 2015, 8:12:13 AM12/21/15
to AngularJS
When running the "live example" found on https://angular.io/docs/ts/latest/quickstart.html, I get the same behaviour; the page never gets past "loading ..." when running on an Android 4.1 emulator from Android Studio.

Eric Martinez

unread,
Dec 21, 2015, 11:07:03 AM12/21/15
to AngularJS
I don't know which version of Chrome Android uses so far, but according to http://caniuse.com/#feat=requestanimationframe is only supported since Chrome v47 (on Android)

So you'll have to use some polyfill. Check this comment (the answer is for IE9, but you may want to see the other recommendations in case you find similar problems) https://github.com/angular/angular/issues/5981#issuecomment-165486779
Reply all
Reply to author
Forward
0 new messages