H5 webApp 被Android webView加载时提示 window.localStorage is not found解决办法

解决办法

webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
String appCachePath = getApplicationContext().getCacheDir().getAbsolutePath();
webView.getSettings().setAppCachePath(appCachePath);
webView.getSettings().setAllowFileAccess(true);
webView.getSettings().setAppCacheEnabled(true);

你可能感兴趣的:(H5 webApp 被Android webView加载时提示 window.localStorage is not found解决办法)