Replies: 1 comment 8 replies
-
Thanks for raising this topic. Before I start to write a long answer: Did you have an look at the sample app? First of all, don't forget to call Do you have a stacktrace of the error that happens when you start the app? Do you have a reproduction sample app which I can use to troubleshoot the problem? Meanwhile, I'll double-check that there is always a logger instance in FirebasePushNotificationManager... |
Beta Was this translation helpful? Give feedback.
-
Hello, @thomasgalliker I would like to ask for some help integrating your package in our app. In our app we do not use MVVM so most of our logic is in the MainPage.xaml.cs.
Summarise my problem is:
When I would like to call the RegisterForPushNotificationsAsync() method from the MainPage.xaml.cs I get the error that the FirebasePushNotificationManager class logger property is null.
I already added the following line in the MauiProgram.cs file:
The MainPage.xaml.cs constructor looks like this:
and it is called from the App.xaml.cs
Could you please help me resolve this issue? Thanks for your hard work!
Beta Was this translation helpful? Give feedback.
All reactions