A .NET MAUI plugin for peer-to-peer (P2P) connectivity with nearby devices by unifying Google's Nearby Connections and Apple's Multipeer Connectivity capabilities.
| Platform | Minimum Version Supported |
|---|---|
| iOS | Not set in project. |
| Android | Not set in project |
Plugin.Maui.NearbyConnections is available on nuget.org
dotnet add package Plugin.Maui.NearbyConnections -s https://api.nuget.org/v3/index.jsonpublic static MauiApp CreateMauiApp()
=> MauiApp.CreateBuilder()
.UseMauiApp<App>()
.AddNearbyConnections() // Defaults
.Build();public static MauiApp CreateMauiApp()
=> MauiApp.CreateBuilder()
.UseMauiApp<App>()
.AddNearbyConnections(options => // Custom Config
{
options.ServiceName = "MyService";
options.AutoAcceptConnections = false;
})
.Build();