We are using communication notification to update notification icon, but for us it's not working for xamarin project.
var handle = new INPersonHandle("unique-user-id-1", INPersonHandleType.Unknown); var avatar = INImage.FromName("abc.png"); var sender = new INPerson(handle, null, "Example", avatar, null, null);
var intent = new INSendMessageIntent(null,INOutgoingMessageType.Text,
"Message content",
null,
"unique-conversation-id-1",
null,
sender,null);
// Use the intent to initialize the interaction.
var interaction = new INInteraction(intent: intent, response: null);
interaction.Direction = INInteractionDirection.Incoming;
interaction.DonateInteraction((error) =>
{
// ...
});
NSError error1 = null;
var content = request.Content;
var updatedContent = content.Update(intent, out error1);
contentHandler(updatedContent);