Add implementation for sendMessage method on iOS