i use following code to send notification by Firebase Admin , but image does not show in firefox developer , The image is displayed well in Chrome what should i do ?
var path = _env.ContentRootPath + "/private_key_firebase.json";
FirebaseApp app = null;
try
{
app = FirebaseApp.GetInstance("webbitTask");
if (app == null)
{
app = FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.FromFile(path)
}, "webbitTask");
}
}
catch (Exception ex)
{
return;
}
var fcm = FirebaseAdmin.Messaging.FirebaseMessaging.GetMessaging(app);
Message message = new Message()
{
Notification = new Notification
{
Title = "Title of my notification",
Body = "Content of my notification",
ImageUrl = "https://my.webbit.ir/Admin/Templates/Default/images/backgrounds/logo144.png"
},
Webpush = new WebpushConfig()
{
FcmOptions = new WebpushFcmOptions()
{
Link = "https://www.webbit.ir",
}
},
Token = "myToken"
};
await fcm.SendAsync(message);