Reputation: 6246
I'm creating an application with .NET 8 MAUI, and I like adding push notifications. Although I'm a big fan of Microsoft, the experience is quite frustrating.
It is more than 2 weeks that I tried to configure Azure Notification Hubs and paying the Azure support, I still can't configure the hub for Windows and Android doesn't seem working. So, at this point I tried other plugin but I have to ignore the Windows notification (sigh!).
I tried:
.NET8
and the error isCould not find a part of the path 'C:\Users\enric.nuget\packages\xamarin.firebase.ios.installations\8.10.0.3\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FirebaseInstallations-umbrella.h'.
Could not find a part of the path 'C:\Users\enric.nuget\packages\xamarin.firebase.ios.installations\8.10.0.3\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FirebaseInstallations-umbrella.h'.
Just to be sure and clear, I tried to send test messages from the Firebase portal like in the following screenshot.
Is it possible to implement Push Notification in .NET 8 MAUI? How?
Upvotes: 1
Views: 6655
Reputation: 11
Try adding long path support in window. Check below link, after Enable Win32 Long Path, restart your machine and try again by adding / updating relevant nuget packages for .e.g xamarin.firebase.ios.installations.
The issue appears your path increased 256 character as in below error that says ...FirebaseInstallations-umbrella.h.
https://learn.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-long-path
Could not find a part of the path 'C:\Users\enric.nuget\packages\xamarin.firebase.ios.installations\8.10.0.3\lib\net6.0-ios15.4\Firebase.Installations.resources\FirebaseInstallations.xcframework\ios-arm64_x86_64-simulator\FirebaseInstallations.framework\Headers\FirebaseInstallations-umbrella.h'.
Upvotes: 0
Reputation: 1
To install Plugin.Firebase you need to install by PowerShell.
Try do this steps:
1- nuget locals all -clear; 2- dotnet add package Plugin.Firebase
The VStudio needs to be closed.
Upvotes: -3