Hello Yongqing,
Welcome to our Microsoft Q&A platform!
There is a problem: In my custom browser, there is nothing for the existing user credential. The user needs to login again with username and password.
You can create a custom renderer for your WebView. Then enable javascript And Dom Storage. This helps you to remember login details in webview app like following code.
[assembly: ExportRenderer(typeof(Xamarin.Forms.WebView), typeof(MyWebviewCustomRenderer))]
namespace App7.Droid
{
internal class MyWebviewCustomRenderer : WebViewRenderer
{
public MyWebviewCustomRenderer(Context context) : base(context)
{
}
protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.WebView> e)
{
base.OnElementChanged(e);
if (e.NewElement != null)
{
Control.Settings.JavaScriptEnabled = true ;
Control.Settings.DomStorageEnabled = true ;
Control.Settings.SavePassword = true;
}
}
}
}
Is there a way to share / get /import the existing user credentials stored by the browsers (Chrome, Firefox..)?
No. Android app cannot access other application's credentials
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.