Skip to content Skip to sidebar Skip to footer

Android Webview Issue For Twitter Even With Domstorageenabled Enabled

I have tested the following issue on Galaxy Note 2.3, Sony tablet 3.2 as well as Galaxy Y 2.3 and the issue is 100% reproducable. As suggested on many threads , webview.getSettings

Solution 1:

Hardcoding the Useragent as suggested on other threads solved the problem

webview.getSettings().setUserAgentString("Mozilla/5.0 (Linux; U; Android 2.0; en-us; Droid Build/ESD20) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17");

What will be the disadvantages of this dirty trick ? Will it affect the sites loading on a tablet ? Will users be able to go to the desktop site if they want to ?

Post a Comment for "Android Webview Issue For Twitter Even With Domstorageenabled Enabled"