Enable WebView's local storage on Android

Problem:
cocos2d::experimental::ui::WebView' local storage wasn't working on
Android. On iOS worked fine.

Solution:
Enable local storage of android.webkit.WebView in Android.

References:
https://developer.android.com/reference/android/webkit/WebSettings.html
http://stackoverflow.com/questions/5899087/android-webview-localstorage
This commit is contained in:
Greg Rynkowski 2016-05-18 12:27:12 +01:00
parent 3db84916d1
commit 21fc67b358
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public class Cocos2dxWebView extends WebView {
this.getSettings().setSupportZoom(false);
this.getSettings().setDomStorageEnabled(true);
this.getSettings().setJavaScriptEnabled(true);
// `searchBoxJavaBridge_` has big security risk. http://jvn.jp/en/jp/JVN53768697