IIRC the text areas where I write chat messages stored the message in local storage (or similar in Android) on change, loaded the stored message when the view opened, and cleared it after sending it to the server.
This way I could author half a message, look at the map, finish it and send it.
Now I have to rewrite it completely.