Darkmode.js
Darkmode.js copied to clipboard
Work on Browser (Mobile/PC) But not working on Android WebView Application
I have implented the darkmode.Js it works great on PC or mobile browser. But somehow the JS is not working on Android Webview Application. It doesnot show toggles or even I set the dark mode pre activated it does not switch on webview application.
PS note: I tried to activate the Javascript on webview App. Still no luck.
No. Its not yet fixed.
I haven't got time yet to look into it.
Is there still an intent to fix this?
🦄 Issue is not related to Darkmode.js
You need to enable DOM Storage API in OnCreate to solve this issue.
WebSettings.setDomStorageEnabled(true)
Sadly WebSettings.setDomStorageEnabled(true) does not do the trick