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
Status marked as battery draining app on Android Samsung S6 #6447
Comments
If someone is willing to bet $50 or more they fixed the problem dac-zero (https://discuss.status.im/t/sitg-experiment-2-dac0-liquid-pledging/426) is willing to pay $500, provided you opted in to the SNT pool (https://discuss.status.im/t/be-part-of-the-dao-nao/507).
|
@mandrigin @yenda do we have a clear understanding what is causing it? If not, how we can research it? |
It'd also be great to understand why this wasn't an acceptance criteria for the swarm/team that dealt with this over a period of a few months. I know we made huge improvements, but this seems like a pretty clear cut case of either it works (according to Android battery monitor, which end users trusts) or it doesn't? |
^ @chadyj fyi |
@oskarth thanks for creating this issue, finally. I'll document my decision chain here. unlike on iOS, on Android, devp2p node keeps running in the background, that helps Whisper to receive messages even when the app is minimized w/o mailservers. That is what probably causes SGS app power monitor to freak out. So, there is a compromise between receiving more messages w/o mailservers and app power monitor messages. So, we can either keep doing what we are doing now, or change the behaviour and stop the node when the app is backgrounded. |
I think it makes sense to do what default Android and iOS apps do and power off by default. Can be advanced mode to turn on battery intensive background fetching. What do normal mail apps do? |
@oskarth normal apps don't keep multitudes of p2p connections. It's hell of a lot easier not to keep a connection if you only make requests to some rest/soap/graphql APIs. |
but sure, we can shutdown the node, it will just take a few more seconds to get your messages when you return from background. |
No takers for the offer yet. Since I believe this should be a core responsibility, and SNT pool looks likely to change with move to Network, I'm hereby revoking the above extra bounty. (We can still use a bounty for this, just think there are more valuable things for me to stake my own personal funds to further Status right now. It also makes my own fund management easier so I don't hand out IOUs everywhere :P). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still active |
@Serhy do you know if this is still relevant? I can only test Android 7 :/ |
Can't reproduce with Android 6.0.1 (Galaxy Note 4) |
Thanks for checking! |
Problem
Status is marked as a battery draining app by App power monitor on Android. This is obviously a big problem as people will remove apps that drain too much problems. It appears it is due to using battery in the background, unlike other apps.
This problem happens within a few minutes of launching the app and has been reported by many users.
Implementation
Do whatever is necessary to get rid of this.
Acceptance Criteria
Make it disappear consistently.
Notes
This has been reported so many times it isn't funny, and it is so easy to detect.
Future Steps
Ensure automatic tests of this.
The text was updated successfully, but these errors were encountered: