Android doze mode and foreground service

蹲街弑〆低调 提交于 2019-12-02 07:34:25

According to this SO question and answer:

In this post's comments on Sep 17 Dianne Hackborn writes:

Apps that have been running foreground services (with the associated notification) are not restricted by doze.

It looks like using a foreground service prevents the app from being killed by Doze.

Please note though, that some vendors (I know of Samsung, but there are probably others) create their own RAM conservation/battery saving tools. Not even caring about Doze. You are not guaranteed to get the same behaviour on these devices.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!