I'm trying to integrate Firebase Cloud Messaging (FCM) into my .NET MAUI app, but I keep running into an issue when installing the Plugin.Firebase.CloudMessaging package via NuGet.
Issue:
When attempting to install the package, I get the following error:
Path Too Long Exception
I have already enabled long path support in Windows (LongPathsEnabled set to 1 in the registry) and tried various solutions found online, but none of them have worked.
What I've Tried:
Enabled long paths in Windows.
Installed the package via the command line (dotnet add package Plugin.Firebase.CloudMessaging).
Deleted the bin and obj folders, then rebuilt the project.
Moved my project to a shorter path to avoid deep folder structures.
Despite all these attempts, the error persists, making it impossible to add Firebase to my MAUI project.
Additional Observations:
Based on the error message I encountered, it seems to be related to the iOS part of the project, even though I'm only focusing on Android for now. However, I haven't explicitly verified this—it's just an impression from the error message.
Questions:
Is there a specific workaround to install this package in MAUI without running into the "Path Too Long" issue?
Could this be a compatibility issue between Plugin.Firebase.CloudMessaging and MAUI?
Are there alternative ways to integrate Firebase Cloud Messaging in MAUI without relying on this package?
Any help would be greatly appreciated!
I tried several solutions to resolve the Path Too Long error when installing Plugin.Firebase.CloudMessaging in my .NET MAUI project:
Enabled long path support in Windows by setting LongPathsEnabled to 1 in the registry.
Tried installing via CLI using dotnet add package Plugin.Firebase.CloudMessaging instead of the NuGet Package Manager.
Deleted the bin and obj folders, then cleaned and rebuilt the project.
Moved my project to a shorter path to reduce the directory depth.
Checked for solutions on Stack Overflow and GitHub, but none of the suggested fixes worked.
Despite all these attempts, the error persists, making it impossible to install the package.
I'm trying to integrate Firebase Cloud Messaging (FCM) into my .NET MAUI app, but I keep running into an issue when installing the Plugin.Firebase.CloudMessaging package via NuGet.
Issue:
When attempting to install the package, I get the following error:
Path Too Long Exception
I have already enabled long path support in Windows (LongPathsEnabled set to 1 in the registry) and tried various solutions found online, but none of them have worked.
What I've Tried:
Enabled long paths in Windows.
Installed the package via the command line (dotnet add package Plugin.Firebase.CloudMessaging).
Deleted the bin and obj folders, then rebuilt the project.
Moved my project to a shorter path to avoid deep folder structures.
Despite all these attempts, the error persists, making it impossible to add Firebase to my MAUI project.
Additional Observations:
Based on the error message I encountered, it seems to be related to the iOS part of the project, even though I'm only focusing on Android for now. However, I haven't explicitly verified this—it's just an impression from the error message.
Questions:
Is there a specific workaround to install this package in MAUI without running into the "Path Too Long" issue?
Could this be a compatibility issue between Plugin.Firebase.CloudMessaging and MAUI?
Are there alternative ways to integrate Firebase Cloud Messaging in MAUI without relying on this package?
Any help would be greatly appreciated!
I tried several solutions to resolve the Path Too Long error when installing Plugin.Firebase.CloudMessaging in my .NET MAUI project:
Enabled long path support in Windows by setting LongPathsEnabled to 1 in the registry.
Tried installing via CLI using dotnet add package Plugin.Firebase.CloudMessaging instead of the NuGet Package Manager.
Deleted the bin and obj folders, then cleaned and rebuilt the project.
Moved my project to a shorter path to reduce the directory depth.
Checked for solutions on Stack Overflow and GitHub, but none of the suggested fixes worked.
Despite all these attempts, the error persists, making it impossible to install the package.
Share Improve this question asked Feb 5 at 5:47 Bryy GastBryy Gast 12 bronze badges2 Answers
Reset to default 0Yes, I think it is possibly a compatibility issue between Plugin.Firebase.CloudMessaging
and MAUI.
Consider trying a different Firebase integration approach through direct SDKs or other packages designed for MAUI.
This is a known issue, unfortunately this is not a .NET MAUI problem but wider spread and older. You can check this link about this issue.