sandoche / Darkmode.js

🌓 Add a dark-mode / night-mode to your website in a few seconds
https://darkmodejs.learn.uno
MIT License
2.72k stars 176 forks source link

Work on Browser (Mobile/PC) But not working on Android WebView Application #22

Open ohokbd opened 4 years ago

ohokbd commented 4 years ago

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.

ohokbd commented 4 years ago

No. Its not yet fixed.

sandoche commented 4 years ago

I haven't got time yet to look into it.

aayvazyan-tgm commented 4 years ago

Is there still an intent to fix this?

mcnaveen commented 4 years ago

🦄 Issue is not related to Darkmode.js

You need to enable DOM Storage API in OnCreate to solve this issue.

WebSettings.setDomStorageEnabled(true)

aayvazyan-tgm commented 4 years ago

Sadly WebSettings.setDomStorageEnabled(true) does not do the trick