Xamarin.Essentials: Browser

Pre-release NuGet

The Browser class enables an application to open a web link in the optimized system preferred browser or the external browser.

Using Browser

Add a reference to Xamarin.Essentials in your class:

using Xamarin.Essentials;

The Browser functionality works by calling the OpenAsync method with the Uri and BrowserLaunchMode.

public class BrowserTest
    public async Task OpenBrowser(Uri uri)
        await Browser.OpenAsync(uri, BrowserLaunchMode.SystemPreferred);

Platform Implementation Specifics

The Launch Mode determines how the browser is launched:

System Preferred

Chrome Custom Tabs will attempted to be used load the Uri and keep navigation awareness.


An Intent will be used to request the Uri be opened through the systems normal browser.