Closed Govern24 closed 1 year ago
Hmm, I can't see any problem with your code so far. The android FirebaseAuthImplementation
class uses the Microsoft.Maui.ApplicationModel.Platform.CurrentActivity
object and this seems to be null for some reason, so maybe your Maui setup is wrongly configured somehow? Are you calling .UseMauiApp<App>()
on the MauiAppBuilder
in your MauiProgramm
file?
Furthermore I've released a new version 1.3.0 which might fix the problem, see https://github.com/TobiasBuchholz/Plugin.Firebase/issues/67#issuecomment-1409304552
Current Activity is null, ensure that the MainApplication.cs file is setting the CurrentActivity in your source code so Firebase Analytics can use it.
This is how my MainActivity looks like:
This is the MainApplication class: