Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> weren’t background apps on Android leashed in because abuse of the capability was rampant and was torpedoing users’ battery life?

Yes, you can still run in the background but you need to show a persistent notification to that effect. The user can then choose whether to hide it.



If the user hides it, the app loses background capabilities.

Also, notification area becomes unusable if there are too many persistent notifications. Syncthing, VPN, xmpp client, and you almost have no space for regular notifications, they become stacked.


> If the user hides it, the app loses background capabilities.

That seems quite incorrect to me. Source?


We develop an app that needs to stay in the background (an xmpp client). If a user hides the notification, the app dies in 30-60 seconds.


Looks like the outcome of some custom/wild "battery optimizer" logic. AIUI, this just doesn't happen on stock hardware without such customizations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: