Android oreo ble connection in background

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!

1 answer

  • answered 2018-03-13 20:49 pawel.urban

    Go for a foreground service. Lister for all of BOOT_COMPLETED broadcasts. Pray to Android Gods that it works out.