iOS WeChat app - send message with appium

I try to use appium to send message via WeChat app on real iPhone device
but when i try to insert text message to the text box i get the next error:

{“message”:“An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 “Keyboard is not present” UserInfo={NSLocalizedDescription=Keyboard is not present}”}

how can i solve this issue?

This error will come when you don’t have keyboard opened for the textbox, Could you try opening the keyboard first and enter the text.

Ravi, I tried that and i get the same error message when the keyboard is displayed on the screen