Replies: 1 comment 4 replies
-
You don't directly inject shiny modules anywhere in your app. There is extensions methods for all modules. Please read the docs on this: https://shinylib.net/client/push/providers/ There is also a sample at: https://github.com/shinyorg/pushtester/tree/main/PushEndToEnd
You will have tons of problems if you do stuff like this. I'm going to go into the reasons things can deadlock here. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use Firebase Notifications in my Blazor App.
In my MauiProgram I register the firebase messaging with:
And since I want to use the PushManager to register my app to firebase, I add this for dependency injection as well in MauiProgram:
builder.Services.AddSingleton<Shiny.Push.IPushManager, Shiny.Push.PushManager>();
And in the code behind of my Razor page, I injected the PushManager with:
But during startup I get the error:
"Unable to resolve service for type 'Shiny.AndroidPlatform' while attempting to activate 'Shiny.Push.PushManager'.
I'm sure I've forgotten something fundamental here. But what?
Beta Was this translation helpful? Give feedback.
All reactions