Replies: 1 comment 2 replies
-
Unfortunately, I have never used blazer. UseFirebasePushNotifications not only registers required services, it also configures them. So maybe you habe to do something similar to what is done in UseFirebasePushNotifications method. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've a Blazor Hybrid App - and want to use the plugin.
But how is this done with the dependency injection?
I inject the
@inject IFirebasePushNotification firebasePushNotification
in my Index.razor.
But do I have to do more than the
.UseFirebasePushNotifications()
in the MauiProgram?
The code builds but on startup I get (of course) the error:
"Cannot provide a value for property 'firebasePushNotification' on type 'BalzorHybridFirebaseTest2.Pages.Index'. There is no registered service of type 'Plugin.FirebasePushNotifications.IFirebasePushNotification'.
Beta Was this translation helpful? Give feedback.
All reactions