"Android app can't keep a connection alive" is a websockets problem with what ever you are using to proxy connections to your Mattermost server
I've gotten it working correctly with nginx
I've gotten it working correctly with nginx
Not to mention, when it loses the connection it doesn't re-establish it the same moment automatically.