Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRE on FirebaseCloudMessagingImplementation.Initialize(); #407

Open
IvanFMit opened this issue Feb 6, 2025 · 0 comments
Open

NRE on FirebaseCloudMessagingImplementation.Initialize(); #407

IvanFMit opened this issue Feb 6, 2025 · 0 comments

Comments

@IvanFMit
Copy link

IvanFMit commented Feb 6, 2025

I get the following error when running the method FirebaseCloudMessagingImplementation.Initialize();

this is my code:
events.AddiOS(iOS => iOS.WillFinishLaunching((_,__) => { try{ CrossFirebase.Initialize(); FirebaseCloudMessagingImplementation.Initialize(); } catch(Exception ex) { //Exception Here } return false; }));

This is the Exception

System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.Firebase.CloudMessaging.FirebaseCloudMessagingImplementation.RegisterForRemoteNotifications()
at Plugin.Firebase.CloudMessaging.FirebaseCloudMessagingImplementation.Initialize()
at visitor.manager.maui.app.MauiProgram.<>c.b__6_3(UIApplication _, NSDictionary __) in /Users/eyleenecheverry/AppsIvan/visitor.manager-mobile/visitor.manager.maui/MauiProgram.cs:line 86

Help please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant