Hi! I am trying to use this package on a Web Api project and the message is never sent.
In fact, when forcing the method to run synchronously, the .Result never gets a reference and the execution stops.
The referred block of code below:
var client = new FCMClient(AppConfig.GoogleFirebaseApiKey);
var message = new Message()
{
To = destination_user.FirebaseToken,
Notification = new AndroidNotification()
{
Body = mensagem,
Title = fromUser.Email,
Icon = "MyAppIcon"
}
};
var r = await client.SendMessageAsync(message);
Thanks in advance for any help.
Hi! I am trying to use this package on a Web Api project and the message is never sent.
In fact, when forcing the method to run synchronously, the .Result never gets a reference and the execution stops.
The referred block of code below:
Thanks in advance for any help.