This control allows you to view webviews with basic authentication
Install this package into your forms project
Install this package into your platform projects
In your platform projects, add the following line of code after your Xamarin.Forms.Init()
Tangent.Controls.WebViewAuthRenderer.Init();
Android requires the INTERNET
permission in order to load a website from the Internet.
In your XAML Page, add the namespace
xmlns:controls="clr-namespace:Tangent.Controls.WebViewAuth;assembly=Tangent.Controls.WebViewAuth"
In your XAML Page, use the control like this
<controls:EnhancedWebView
x:Name="EnhancedWeb"
Username="admin@123"
Password="admin"
Source="https://google.com"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand" />
- Username: username property required by auth
- Password: password property required by auth
- Source: https url required