Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery optimization on Android 8.0 prevents the wallet from syncing #557

Closed
fedsten opened this issue Sep 12, 2018 · 2 comments
Closed

Comments

@fedsten
Copy link

fedsten commented Sep 12, 2018

Android 8.0 has introduced a battery optimization change that creates limits on how freely apps running in background can access to the device's resources. This prevents bitcoin-wallet and other apps connected to the Bitcoin network from syncing the blocks when the app is running in background.

Luckily this can be solved by going to "Special app access" in the device's settings and deactivate the battery optimization feature for individual apps.

Since if not addressed this prevents users from being able to use the wallet, I suggest to at least put a helper message somewhere to guide users in deactivating the battery optimization for bitcoin-wallet.

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

@schildbach
Copy link
Collaborator

Yes, that's a known issue. The plan is to rewrite the background process to use WorkManager, as soon as that component is final.

@schildbach
Copy link
Collaborator

We fixed this by using a combination of WorkManager and a Foreground Service. No "doze exception" needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@schildbach @fedsten and others