How to handle reboot session without loosing connection to android device

I need to handle rebooting the android device without loosing the connection. Once the reboot is completed Appium should be able to run the next script without any connection loss.

you cannot, because reboot kills the automation server. You can send the command to reboot the device, stop the session, then start a new one after reboot is completes and the device is back online

Hi @mykola-mokhnach, Thanks for your response.