My error reporting software is catching JS Web Storage (localStorage and sessionStorage) failures that are consistently on Android devices running Chrome mobile. I am not able to reproduce this error on my own Android device.
The specific error is:
TypeError: Cannot read property 'setItem' of null
which is caught after I attempt to run
localStorage.setItem("storageTest","storageTest")
Any ideas or at other experiences with this problem are greatly appreciated.
i think you need to enable dom storage in your android application
WebSettings settings = webView.getSettings();
settings.setDomStorageEnabled(true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With