I need hold ble connection forever. How I can do it for android Oreo with out foreground service ? I need restore application if it was killed of OS. And start application after rebooting . I need every time searching for device and trying to reconnect. Have you any advice ? Thanks!
Go for a foreground service. Lister for all of BOOT_COMPLETED broadcasts. Pray to Android Gods that it works out.