Search code examples
c#push-notificationblazormauimaui-blazor

How to send push notifications to a Blazor Maui application from backend Server


I have a Blazor Maui application where I'd like to have the option to receive push notifications on. I'd like to send the push notifications from a server project inside the same solution where I have my Blazor Maui project. For example : the server should contain a Gui with a textbox for the title and messagebody. This should then sent to all the users who downloaded the app.

Any tutorials,links, examples, tips or recommendations on how to start this?

I followed this guide before but this is all configured inside the app itself.

Thank you in advance.


Solution

  • A .NET MAUI Blazor app is still a .NET MAUI app.

    If you want to use push notifications, you're going to have to be on the platform level. The guide you linked might still be very useful for that.

    The comment from @H.A.H. is a good option too, using SignalR, but that will only work if you're inside of the app. SignalR is not integrated into the OS like push notifications are. You are not able to get a banner in the top of the screen for instance. But definitely thanks for watching and recommending my videos ;)

    If you want the "regular" push notifications, you can follow any guide that adds push notifications in a .NET MAUI app and that will work for .NET MAUI Blazor.