This POC is implemented to explain how dark mode js can be used inside Android Webview Component using DOMStorage API
- Android Webview
- Coliff's Dark Mode Switch JS
- Demo Page of Coliff's Dark Mode Switch
This App uses the Deprecated API webSetting.setDomStorageEnabled(true);
. But this is the only possible working solution. Even though it's deprecated it can be safely used.
- MIT