Letting WebView on Android work with prefers-color-scheme: dark
UPDATE 2022: AndroidX Webkit 1.5.0 fixed a lot of the quirkyness of how webview handles dark mode. For this to work you need to: Add the latest version of webkit to your project (at least 1.5.0): implementation ‘androidx.webkit:webkit:1.5.0’ Set the target version of your application to 33 or up targetSdkVersion 33 Make sure Android System … Read more