본문 바로가기
프로그래밍 놀이터/안드로이드, Java

[android] Oreo 에서는 Wakelock 이 소용 없다?!

by 돼지왕 왕돼지 2018. 12. 2.
반응형

[android] Oreo 에서는 Wakelock 이 소용 없다?!



https://developer.android.com/about/versions/oreo/android-8.0-changes


android o wakelock, background wakelock, Foreground, foreground service, high priority push, oreo wakelock, [android] Oreo 에서는 Wakelock 이 소용 없다?!


-

As one of the changes that Android 8.0 (API level 26) introduces to improve battery life, when your app enters the cached state, with no active components, the system releases any wakelocks that the app holds.


App 이 cache 상태에 돌입하고, Active component 가 없으면 system 이 자동으로 wakelock 을 해제한다고 되어 있다.

이 말을 다시 해석하면 App 이 background 에 들어가면서 foreground 로 실행되는 녀석이 없다면(예를 들면 foreground service 나 high priority push 등으로 인해 동작하는 로직 등) wake lock 은 무용지물이라는 이야기이다.




반응형

댓글