Implementation of the Notification API in C# for Microsoft Blazor.
Blazor Extensions are a set of packages with the goal of adding useful things to Blazor.
Install-Package Blazor.Extensions.Notifications
There is a sample application in /tests/ folder For some other references of what the API does see the example demo
Scoped by default.
publicvoidConfigureServices(IServiceCollectionservices){services.AddNotifications();}@usingBlazor.Extensions
@inject INotificationService NotificationServiceor
[Inject]privateINotificationService_notificationService{get;set;}NotificationOptionsoptions=newNotificationOptions{Body=body,Icon=icon,};awaitNotificationService.CreateAsync(title,options);boolIsSupportedByBrowser=NotificationService.IsSupportedByBrowserAsync();PermissionTypepermission=awaitNotificationService.RequestPermissionAsync();Please feel free to use the component, open issues, fix bugs or provide feedback.
This project is created and maintained by:
The following people are the maintainers of the Blazor Extensions projects: