NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.07k stars 461 forks source link

Battery optimization is killing nrf-toolbox while running in the background #57

Open vineeshvs opened 5 years ago

vineeshvs commented 5 years ago

This happens in Android 7.+

Any workaround/ solutions?

Are you guys updating this app?

philips77 commented 5 years ago

Hi @vineeshvs, Yes, nRF Toolbox is under maintenance. Most new changes are on develop branch, but indeed I forgot about the battery optimization. The solution would be to keep running the service in foreground. Foreground services display a constant notification to the user, but the OS won't kill them automatically. I'll fix the issue before the develop branch is merged to master, but it may take few days. Thank you for creating the Issue.

philips77 commented 5 years ago

This will have to wait. We don't have time to fix this issue now. Most probably we will fix it together with rewriting the app in Kotlin. Unknown ETA. Let's leave it open.

archie94 commented 1 year ago

Does this solve the issue described here?