Open wynston-champion-actabl opened 3 weeks ago
Try adding line: FirebaseCloudMessagingImplementation.Initialize(); after CrossFirebase.Initialize(); in IOS section.
I have a similar issue.....without this line FirebaseCloudMessagingImplementation.Initialize() the app runs but the GetTokenAsync() throws NULL reference exception.
however, If I add the line then the app crashes with NULL reference exception in FirebaseCloudMessagingImplementation.RegisterForRemoteNotifications()
don't know what to do.
I am receiving the error message "Couldn't retrieve FCM token" while awaiting
await CrossFirebaseCloudMessaging.Current.GetTokenAsync();
.Current nuget:
Plugin.Firebase.CloudMessaging - 3.0.0
My
MauiProgram.cs
file is as follows:I have the following in my project file:
Confirmed that the Application ID matches what is listed as the Bundle ID in the
GoogleService-Info.plist
file.Am I missing anything else that could be causing this error?