Dropping connection issue on Android 8

Hello all,

I have faced with serious issue with Android 8 (Smack 4.2.0). When phone goes to Doze mode connection is dropped.

After that when unlock phone foreground application cannot login.
Im receiving
SASLError using PLAIN: not-authorized

every time.

Previously I was faced with timeout error which seem has been fixed after adding checking Internet connection when pinging Google sever with Volley library.

I’ll appreciate to any help with that,

Dima