hi,
how i can make calls from webview to a non secure server? http fetch call?
In android i solve this with
#if Java
import android.webkit.*;
public static void setWebViewContentMode(WebView wv) {
wv.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
}
import android.content.*;
import android.content.res.*;
@override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(newBase);
final Configuration override = new Configuration(newBase.getResources().getConfiguration());
override.fontScale = 1.0f;
applyOverrideConfiguration(override);
BA.Log("attachBaseContext");
}
#End If
tanks Paolo
how i can make calls from webview to a non secure server? http fetch call?
In android i solve this with
#if Java
import android.webkit.*;
public static void setWebViewContentMode(WebView wv) {
wv.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
}
import android.content.*;
import android.content.res.*;
@override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(newBase);
final Configuration override = new Configuration(newBase.getResources().getConfiguration());
override.fontScale = 1.0f;
applyOverrideConfiguration(override);
BA.Log("attachBaseContext");
}
#End If
tanks Paolo