HTML Label in Messages Template Causing Messages Rendering On SfChat to Slow on iOS

Hi,

I am currently using SfChat 18.3.0.42. I've created my custom templates that have labels element as HTML text type. Please refer to this link https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/label#display-html. The issue arises when I use these labels that are html text type, the chat rendering becomes slow on iOS and causing the scrolling to act weirdly. When I remove html label, everything works fine. Do you know how we can overcome this issue?

Please advice. Thank you!
Ben Hotra.

Attachment: Chat_With_Html_Labels_ec7dc38a.zip

6 Replies

KK Karthikraja Kalaimani Syncfusion Team December 11, 2020 09:36 AM UTC

 
Hi Ben,

Based on the provided details we have checked the reported issue “Scrolling performance is down when load Html text in MessageTemplate” in iPhone 11 iOS 13.1 with Xamarin Forms version 5.0.0.1558-pre3. We couldn’t reproduce the issue in these versions. We have  attached the tested video for your reference. Currently, the iOS 14.1 version is not available in our side. So, we will check in iOS 14.1 version and update the details on or before 15th December 2020. We appreciate your patience until then.

Video link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Screen_Recording-89694352.zip

Regards,
Karthik Raja
 



BH Ben Hotra December 12, 2020 07:07 PM UTC

Hi Karthik,

Thank you so much for your reply. Sorry, I meant the issue is not with scrolling. The issue is with rendering the new messages that have HTML labels. I've found that the issue arises when we add messages to the list whether during initialing first set of messages or on a fly like for "load more". For example, I am currently implementing load more functionality where we add older messages when reaching the top. Please refer to below code that we use to insert older messages. For example, I have 20 older messages coming in, they would go through this loop to be inserted to the initial messages list. The problem is those messages do not display immediately, but instead there is some delay between each message. When I removed HTML label, this does not happen. Only happens on iOS as well. Please see the attracted video.
foreach (ChatMessage message in messages)
{
....

Message olderMessage = new Message
{
Author = messageUser,
DateTime = message.CreatedDateTime ?? DateTime.Now,
Text = message.Body
};

Messages.Insert(0,
olderMessage);
}


Please advice. Thank you!
Ben

Attachment: Screen_Recording_20201211_at_11.58.19_AM.mov_4f17111e.zip


KK Karthikraja Kalaimani Syncfusion Team December 14, 2020 11:49 AM UTC

 
Hi Ben,

Currently, we are working on your requirement. we will update the details on or before 16th December 2020. We appreciate your patience until then.

Regards,
Karthik Raja 



BH Ben Hotra December 14, 2020 03:20 PM UTC

Hi Karthik,

Thank you so much for looking into this. Looking forward to hearing the details. Also, I am using currently on Xamarin Forms version 4.7.0.1351.

Thank you,
Ben.


KK Karthikraja Kalaimani Syncfusion Team December 15, 2020 05:29 AM UTC

 
Hi Ben,

Thanks for the information.

We will check and update the details on 16th December 2020. We appreciate your patience until then.

Regards,
Karthik Raja 



KK Karthikraja Kalaimani Syncfusion Team December 16, 2020 04:36 PM UTC

 

Hi Ben,

We need some more time to check on this. So, we will update the details on or before 18th December 2020. We appreciate your patience until then.

Regards,
Karthik Raja


Loader.
Up arrow icon