Open balazs-adam opened 1 year ago
Hi, I am facing the similar issue with Auth.
//DefaultInstance is null.
Firebase.Auth.Auth instance = Firebase.Auth.Auth.DefaultInstance;
This only happens when using Hot Restart. When I am deploying by connecting with mac, this issue disappeared.
Hot Restart supports only dynamic libraries: https://learn.microsoft.com/en-us/dotnet/maui/deployment/hot-restart#prevent-code-from-executing I think thats the problem.
Same problem here.
Is there any fix yet?
Same problem here.
Is there any fix yet?
Workaround: Try to deploy by connect with mac. For GoogleService-Info.plist file use the @balazs-adam's workaround.
Yes, for now I'd recommend using the HOTRESTART
preprocessor to conditionally initialize the FirebaseApp only when Hot Restart is not enabled.
Hi,
In my MAUI application targeting
net6.0-ios15.4
I configure the Firebase App the following way in the AppDelegateBut It seems that I can't instantiate the
Firebase.Core.Options
class because I get the following exception:As a workaround, I've also tried to initialize the Firebase App using a GoogleService-Info.plist file in the Platforms/iOS folder and adding the following to the csproj:
I've verified that the plist file does get included in the ipa output and the
Firebase.Core.App.Configure
call runs without errors. But when I'm trying to callCrashlytics.SharedInstance.Init()
I get a NullReferenceException on the SharedInstance. Also after theFirebase.Core.App.Configure
call theFirebase.Core.App.DefaultInstance
stays null.I've tested it in an empty MAUI project adding only the following nugets:
Anyone else experiencing a similar issue?