Hi,
I am getting the same error 501. following are the details:
<PackageReference Include="FirebaseAdmin" Version="3.0.0" />
Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", dcmFilePath);
string projetoId = "myProjId";
defaultApp = FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromFile(dcmFilePath),
ProjectId = projetoId,
});
var messages = new List<Message>();
messages.Add(new Message()
{
Notification = new Notification()
{
Title = "My test message 123",
Body = "Test Message body 123"
},
Data = new Dictionary<string, string>()
{
{ "score", "850" },
{ "time", "2:45" },
},
Token = fcm_token,
}
var responses = await FirebaseMessaging.DefaultInstance.SendAllAsync(messages)