Hi! I develop Android XMPP client using Smack.
It is popular use case for Android devices to reconnect often. I use existing XMPPTCPConnection to reconnect.
But DNS resolving (populateHostAddresses method) called every time. It looks a little overhead, but the main problem for me is that it hangs on some Androids (6+). I suspect doze mode (but buttery optimization is disabled for application).
I tried to connect to ip address directly and it worked much better. So I want to cache hosts addresses resolved in populateHostAddresses method.
For now I want to try to oveload this method and do not resolve host addresses if they are not empty. May be add some interval not to call it too often.
Is it possible to have similar behavior (optionally) in Smack?
Thanks for any help!