SfChat.ShowKeyboardAlways not working on Android platform.

Hi Syncfusion,

Im in a project using SfChat control, but when my user tapped to send message, keyboard on Android auto hide. 

ShowKeyboardAlways is not working.


Please check it.

Thanks you.


1 Reply

SV Suja Venkatesan Syncfusion Team December 15, 2021 01:41 PM UTC

Hi Nguyen, 

ShowKeyBoardAlways property is not applicable for Xamarin.Forms.Android platform. Please refer the below work around to show the keyboard always in android platform. 

public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 
{ 
        public override View CurrentFocus 
        { 
            get 
            { 
                if (SfChatRenderer.IsChatEditorFocused(base.CurrentFocus)) 
                { 
                    return null; 
                } 
                return base.CurrentFocus; 
            } 
        } 
} 

Please refer our User Documentation of ShowKeyBoardAlways property in the following link 


Please let us know if you need any other assistance. 

Regards, 
Suja 


Loader.
Up arrow icon