/// <summary> /// /// </summary> protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Create your application here SetContentView(Resource.Layout.WebAuthenticationBroker); string url = Intent.GetStringExtra("Url"); WebView webView = FindViewById <WebView>(Resource.Id.agentWebView); WebSettings webSettings = webView.Settings; string userAgent = webSettings.UserAgentString; webSettings.UserAgentString = userAgent + BrokerConstants.ClientTlsNotSupported; PlatformPlugin.Logger.Verbose(null, "UserAgent:" + webSettings.UserAgentString); webSettings.JavaScriptEnabled = true; webSettings.LoadWithOverviewMode = true; webSettings.DomStorageEnabled = true; webSettings.UseWideViewPort = true; webSettings.BuiltInZoomControls = true; this.client = new MsalWebViewClient(Intent.GetStringExtra("Callback")); webView.SetWebViewClient(client); webView.LoadUrl(url, AdditionalHeaders); }
/// <summary> /// /// </summary> protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Create your application here SetContentView(Resource.Layout.WebAuthenticationBroker); string url = Intent.GetStringExtra("Url"); WebView webView = FindViewById<WebView>(Resource.Id.agentWebView); WebSettings webSettings = webView.Settings; string userAgent = webSettings.UserAgentString; webSettings.UserAgentString = userAgent + BrokerConstants.ClientTlsNotSupported; PlatformPlugin.Logger.Verbose(null, "UserAgent:" + webSettings.UserAgentString); webSettings.JavaScriptEnabled = true; webSettings.LoadWithOverviewMode = true; webSettings.DomStorageEnabled = true; webSettings.UseWideViewPort = true; webSettings.BuiltInZoomControls = true; this.client = new MsalWebViewClient(Intent.GetStringExtra("Callback")); webView.SetWebViewClient(client); webView.LoadUrl(url, AdditionalHeaders); }