This obtains a PARTIAL_WAKE_LOCK from Android's PowerManager and a WIFI_MODE_FULL_HIGH_PERF from the WifiManager. This ensures that the CPU will run our tasks when the screen is off and that Wi-Fi download/upload speeds are not dropped. This makes background IBD performance the same as when the app is in the foreground.
Eventually, we can make this customizable by the user, according to their power/network preferences.
This obtains a PARTIAL_WAKE_LOCK from Android's PowerManager and a WIFI_MODE_FULL_HIGH_PERF from the WifiManager. This ensures that the CPU will run our tasks when the screen is off and that Wi-Fi download/upload speeds are not dropped. This makes background IBD performance the same as when the app is in the foreground.
Eventually, we can make this customizable by the user, according to their power/network preferences.
For more information see: