Darkmode.js icon indicating copy to clipboard operation
Darkmode.js copied to clipboard

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

Open ohokbd opened this issue 4 years ago • 5 comments

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 avatar Oct 18 '19 13:10 ohokbd

No. Its not yet fixed.

ohokbd avatar Dec 20 '19 14:12 ohokbd

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

sandoche avatar Dec 25 '19 09:12 sandoche

Is there still an intent to fix this?

aayvazyan-tgm avatar Mar 03 '20 13:03 aayvazyan-tgm

🦄 Issue is not related to Darkmode.js

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

WebSettings.setDomStorageEnabled(true)

mcnaveen avatar Apr 08 '20 03:04 mcnaveen

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

aayvazyan-tgm avatar Apr 08 '20 18:04 aayvazyan-tgm