Android N Doze mode - how to keep the background loading and processing background?

  • Are there callbacks in dose mode (at the Doze first / second level, at the beginning / end of the maintenance window)?
  • Is there a way around the Doze mode that is independent of user approval?
  • In previous versions (Android M and less), I used the Android Service and partial tracking lock to load and process data when the application was in the background. Is there a way to download and process data in the background when Android N enters Doed mode?
0
source share
2 answers

Are there callbacks in dose mode (at the Doze first / second level, at the beginning / end of the maintenance window)?

, ACTION_DEVICE_IDLE_MODE_CHANGED ACTION_POWER_SAVE_MODE_CHANGED . Doze.

Doze, ?

, " Doze". ...AndAllowWhileIdle() AlarmManager, . GCM ( FCM ). . .

(Android M ) Android Service , , .

Doz Android 6.0 (a.k.a., M). , "" Android 6.0.

, Android N Doed?

Doz, Android N, , . Doz, Android N, , .

+2
  1. (Android M ) Android Service , . , Android N Doze?

Doze, , CPU , Doze:

, , - , , startForeground() (1), , , , Doze.

(1), Android 8, Android O - ?

0

Source: https://habr.com/ru/post/1681877/


All Articles