Prefer-color-scheme not working on android apps

I have searched the web and darkmode is not affecting my ionic android app , when i turn on darkmode on IOS it affects the prefers-color-scheme.

Is there any solution to allow prefers-color-scheme:dark work on android apps.

i tested this on android 10.

Various android versions and chrome browser versions do not support the media query. You can mix the two and use css class and JS to get this.

Thanks for your reply,the thing is no android version is supporting it , the app on ios works fine once darkmode is on but on android even after turning on the darkmode it doesnt work .

Is it actually an android webview problem thing that does not support prefer-color-scheme like i am seeing on this stack overflow post.

1 Like