4

I am building a .NET MAUI app with Blazor for iOS initially (and targeting Android soon).
I want to enable and integrate external push notifications, that can be sent from our backend, hosted in Microsoft Azure.

(I am new to apps & notifications, so bear with me)

I believe Azure Notifications Hub would be the right service to use for this, but it seems -at first sight- that not many things have been moving there and I don't seem to find any details on how to integrate that with .NET MAUI applications.

What would be the recommended approach to set this up at the moment?
(SignalR would only work when the app is active, and here I want to use the platform notifications).

Thanks for any insights.

Sam Vanhoutte
  • 3,247
  • 27
  • 48
  • 1
    A bunch of platform specific code. You will have some problems with Android, but IOS is the one that will be hard to set-up. And "debug" this without debugger. – H.A.H. Feb 01 '23 at 20:00
  • Thanks, but reading between your lines feels like "MAUI is not ready for it"? – Sam Vanhoutte Feb 02 '23 at 09:30
  • If you want you can limit yourself to "when the app is running". Local notifications, and push notifications are very different. – H.A.H. Feb 02 '23 at 11:45
  • I know, that's why I was mentioning that SignalR, for example, is not what I need. I need the platform integration – Sam Vanhoutte Feb 02 '23 at 14:33
  • There are plugins. There are 3rd party libs. This here is good starting point: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server – H.A.H. Feb 02 '23 at 14:44
  • I'm currently playing with this myself. There's the Shiny solution that is supposed to be easy to implement -- can't vouch for that claim yet as I'm still working on it myself. Nevertheless, I've heard a lot of people say it's the "go to solution" when it comes to push as well as a lot of background services for .NET MAUI/Xamarin. Keep in mind that the .NET MAUI package is still in "Alpha". Here's the link: https://github.com/shinyorg/shiny – Sam Feb 04 '23 at 18:18
  • None of the libraries I've used for Xamarin.Forms push notifications in the past ([CrossGeeks.FirebasePushNotificationPlugin](https://github.com/CrossGeeks/FirebasePushNotificationPlugin), [CrossGeeks.AzurePushNotificationPlugin](https://github.com/CrossGeeks/AzurePushNotificationPlugin)) have been ported to .NET MAUI yet so it's very annoying to have to implement it yourself per platform. – Michal Diviš Mar 16 '23 at 10:21

0 Answers0