@nikolal That is probably caused by your device itself lowering power by turning off networking when the screen is off. I am not sure where to change that in Android 9 but you can turn it off so that wifi stays active even when the device is idle.