I am employed at a company working on an app which in some circumstances need to perform continuous iBeacon monitoring in the background (in context of a foreground service).
In order for the iBeacon monitoring to not get killed, we instruct our users to add our app to the “Never sleeping apps” list. However, we are hearing from many customers that when they go to “Never sleeping apps” in Setting and click the plus button, our app doesn’t appear in the list and thus it is not possible to add it to “Never sleeping apps”.
In our own testing, we have reproduced this problem on multiple Samsung devices including the S20. We usually have to to uninstall → install the app a couple times before it appears in the list of apps which can be added to “Never sleeping apps”.
Is this a known bug (and is a fix on the way)? Or is there some workaround? It’s terrible to tell our customers to uninstall → reinstall the app until it appears in that list.
Thanks for replying. I have only been paying attention to this for the app I’m working on as it’s the only app I need to add to the “Never sleeping apps” list.
I have seen several reports about this issue for different apps, for example:
I assume the app is running when you attempt to add it to the never sleep apps.
After your install are you doing a restart? I think that was the issue with the last person.
@r.liechty_SDR I believe I installed and launched it and then went to settings to add it to “Never sleeping apps” while it was running in the background.
Is it required that an app currently runs in the background to show up in the list of apps to add to “Never sleeping apps”? - and is a phone reboot required (or a workaround for this problem)?
I always restart my devices after adding software no matter what the device. Since this seems to work sometimes and not other times it is a logical reason.
If that does not resolve it please respond again. I’ve seen this reported before but no one has followed up saying it the issue was resolved. I just have to assume it was.
Perhaps it is already set to never sleep via optimized apps setting? If you want to see it under never sleep, perhaps try adding the app to optimized apps list first. (Apps > Special Access > Optimize battery usage > all > check app) Then it should appear in the list that allows you to add to never sleep list? But either way it achieves intended effect to let it run in background without killing app i guess. This was the case for me.
Maybe it is now set to never rest through enhanced applications setting? Assuming you need to see it under never rest, maybe have a go at adding the application to enhanced applications list first. (Applications > Special Access > Optimize battery use > all > check application) Then it ought to show up in the rundown that permits you to add to never rest list? Yet, whichever way it accomplishes planned impact to allow it to run in foundation without killing application I presume. This was the situation for me.
Follow the steps I hope it might be helpful to you: Navigate to and open Settings, and then tap Battery and device care. Tap Battery, and then tap Background usage limits. The following settings will be available: Put unused apps to sleep: If you haven’t used an app in a while, it will automatically be put to sleep.
I read at another manufacturer since android 10 or 11 apps need to be WHITE listed by the manufacturerto appear in that never sleep list. in this case this would be Samsung
also Samsung does not whitelist another app.
please anyone who can reach Samsung in their native language, try to get them to add BigBlueButton BBB beta app, too.
I would like to ask if Samsung fixed this issue or there’s a solution for thiat
As same issue I am facing when use app depends on beacon BLE which requires to allow the app works in background .
Please check my testing steps I did as follows:
1- Allow the app to work in background.
2- When try to add the app at no sleep app feature, can’t find the app.
4- Then I disabled app to work on the background.
5- then the app will be displayed and can add at no sleep feature.
My finding that something like Samsung phone got a bug .
So I assume Samsung should allow to display all the apps at allow app to work in background and disable app from sleep features at the same time. Then user can select , not when enable one disappear from other.
I had this issue where the app was missing from the never sleeping list. I discovered for me it happened because I had previously set the app to "unrestricted’ in app info > battery. I changed it back to “Optimized” and then it showed in the list again.
Changing back to OPTIMIZED then allowed the app to show back up on list to add to never sleeping apps…so the above suggestion DID work…TY…(Google Home was my example.)
Hi yes there is a solution. I just worked it out, i went to apps on my galaxy s23 ultra and chose the app (AVG) and clicked on battery then changed to optimised then went back to accessibility and never sleeping app clicked plus sign and avg was there this time and i added it
I also have an app that is supperessed by OS consistently. I was able to add it to the never-sleep-list, however, the app is subject to battery optimization. If I choose do not optimize, the app is kicked out the never-sleep-list. It’s either/or and none of the schenarios offers consistent result. Not sure if it matters, but, I did reboot the phone after every settings change. And, as far as I understand unrestricted battery option is android’s attempt to suppress app in background mode and the list is coming from Samsung. So, it’s very annoying not to have an option of having both of them working.