Awesome
🌓 Dark Mode Switch inside Android Webview
This POC is implemented to explain how dark mode js can be used inside Android Webview Component using DOMStorage API
🦄 Resources Used
- Android Webview
- Coliff's Dark Mode Switch JS
- Demo Page of Coliff's Dark Mode Switch
🏃 Test yourself
⚠️ Warning
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.
License
- MIT