Comments (97)
@kspearrin @Primokorn all my test shows bitwarden uses doubles the battery of keepass2android . If kP2A uses 10% bitwarden will be 20% or above. And we cannot compare bitwarden's consumption with lastpass because last pass is very good in battery saving. You can see comparison between lastpass on my previous post.
Here is the result of latest bitwarden with KP2A
from mobile.
@ep2017 try https://ci.appveyor.com/api/buildjobs/vi6s0co30m8ckjff/artifacts/com.x8bit.bitwarden-784.apk
I was playing with the build target on the last one as well which may have screwed stuff up.
from mobile.
@dougmaitelli Which option do you use to get the bitwarden notification?
from mobile.
Can you provide some information as to why you believe bitwarden is abnormally consuming your battery? We have not yet had this report. Is it tied to use of the autofill service?
from mobile.
Without opening or using bitwarden the battery consumption is increasing in time to time.
from mobile.
Well here is the battery consumption comparison between other password managers & bitwarden .
●Lastpass
●Dashlane
●PassKeep2Android
●Bitwarden
After boot (battery between 90% - 99%)
-Lastpass used : 1.3%
-Dashlane : 2.1%
-keepass2android : 0.3
-bitwarden : 5.2%
Battery between (5% -15%)
-lastpass : 7.3%
-dashlane : 9%
-Keepass2android : 5.2%
-Bitwarden : 16.2%
.I think bitwarden is always connected to net server and while others connect only when their is new entry or edit.
Next day After the phn boot i kept the phn ideal for 1 hr without opening bitwarden and checked the battery consumption of apps, bitwarden scores the top consumption of 3.2%. You need to do something about this.
My phone: moto x play
Stock marshmallow 6.0.1
Non rooted
from mobile.
I suspect some of this has to do with the autofill service running. Can you try your tests with autofill turned off?
from mobile.
When i turned off auto fill, battery consumption is reduced .
from mobile.
Ok, that makes a little more sense. Do you have the autofill services turned on in the other apps you are comparing bitwarden to?
from mobile.
Yes auto fill is turned ON in other apps when i compared.
The other thing that i noticed is, all other apps optimize battery (reduce consumption) itself when phn is in ideal or they didn't find any auto fill columns for a while. But bitwarden is increasing its battery consumption time to time.
from mobile.
@kspearrin see the difference . Auto fill is enabled on both .
from mobile.
Only bitwarden has push notifications process, maybe this causing high battery consumption
from mobile.
Possibly. Can you try stopping it to see if it helps for you?
from mobile.
I have tried but no use still consumption is increasing
from mobile.
Yes, it is most likely the autofill service then. There are two things that are weird here:
- You are the only person who has ever reported that this is causing battery issues for them.
- Our implementation is basically exactly the same as Keepass2Android, yet you are saying theirs is not causing any problems for you.
Will have to continue to investigate.
from mobile.
See the difference between bitwarden n keepass2android
from mobile.
There is no battery drain if i disable auto fill accessibility
from mobile.
I have noticed this as well, on both rooted and unrooted devices.
from mobile.
When rooted, I was tracking bitwarden at around 5% drain.
from mobile.
Yes I'm the only person reported battery consumption issue, maybe others are not concerned about battery life or maybe they didn't notice the consumption rate.
The thing i noticed is bitwarden's cpu usage (battery consumption) is increasing in every minute. While keepass2android cpu usage (battery consumption) increase only when we browse sites or use apps .
I think bitwarden looks for password box ever time even if the phn is in ideal , at the same time keepass2android looks for password box only if we open apps or sites .
These are my assumptions. I'm not a dev or tech .
But still im wondering how lastpass manages to make very low battery consumption. I think the use extra script for accessibility auto fill service.
I Hope you will fix the battery issue in the next release.
from mobile.
@jerryn70 does it still drain the battery even if the phone is asleep?
from mobile.
Yes, but at that time consumption is slower .
While phones screen is ON and not using any apps or anything it consumes 1% in every 1 minute.
While browsing sites or using any apps 1% to 5% consumption in every 1 minute
While sleep 1% consumption in every 2 minutes ....
from mobile.
@jerryn70 I have pushed a new build (550) to the beta channel on Google Play store. Can you try it out and see if any improvements?
from mobile.
@kspearrin i have tried but there is no difference. Still same as the current stable version
from mobile.
@jerryn70 I have the same issue on my device:
from mobile.
Thinking about this more, real optimizations will only come if we reduce the number of times the service scans the screen looking for password fields. Currently this happens every time the app detects that there is a change to the screen (a lot!).
What if we changed it so that the notification was always present and when the user taps the notification, only then do we scan the screen to collect username/password field data? That way screen scanning is on demand instead of happening all the time.
The downside to this is of course that the app will no longer be as intelligent about offering the notification only when it can actually help.
from mobile.
I think in a way this might be how LastPass works sometimes. There are always cases where I have to click the notification in order for it to determine what the auto fill.
Is there a way to get it to scan the window periodically or in the first 5 seconds and then stop?
Is there a way when not rooted to disable individual services an app uses?
from mobile.
Can we scan only when keyboard is opened? That would be a good time to guess that we are inputting login info.
from mobile.
@Ralesi Only scanning with keyboard open is a possibility. We could make it a setting?
from mobile.
@kspearrin 'Scan only when keyboard is open' is a good idea.
Or we can use lastpass type auto-fill "scan only when we click on username/password box" .
I think that's why lastpass has very low battery consumption.
from mobile.
I've also noticed this.
I'd be fine with having to click on either a Quick Tile or Bitwarden in the notification shade for it to scan the page/app for a login form.
In LastPass, I often have to click on the password field for it to trigger the popup telling me that I have an option to auto-fill. It's convenient, but I would imagine this still taxes the battery on some level.
My preference would be to have to manually click on a button to get the auto-fill option - saving the greatest amount of battery life.
from mobile.
@kspearrin As you said the service scans the screen looking for password fields everytime when the app detects screen changes.
My question is this, is the screen scanning rate is same as keepass2android or higher.?
If it is higher, then we can reduce it to the level of KP2A , because KP2A didn't failed to show autofill notification in all my test. Reducing scanning rate may reduce battery usage .
from mobile.
As far as I know, our implementation is identical to KP2A.
I will release a beta sometime soon with some changes that you can test for me.
from mobile.
@kspearrin just tag me when new beta is available. I will test n report back.
from mobile.
@jerryn70 Will do. I plan to start working on it soon. Thanks for the testing thus far.
from mobile.
@jerryn70 Can you send me an email at https://bitwarden.com/contact so that I can send you some custom builds to try?
from mobile.
@jerryn70 and others:
Here is a custom build that tests the strategy we discussed above about always showing the notification and only scanning for password fields whenever the autofill is attempted.
https://ci.appveyor.com/api/buildjobs/4gby8sxkvhjh5b10/artifacts/com.x8bit.bitwarden-767.apk
Please let me know if it helps at all.
from mobile.
@kspearrin The ways we discussed
1, Always show notification :- scan for password fields when we click on the notification.
2, Scan only when keyboard is opened.
3, Scan when we click on password field (like laspass)
So the 1st method is created . And iam testing it.
Do you have plan for method 2 and 3 ?
from mobile.
No plans for 2 or 3 yet. I first need to understand if scanning for passwords like we are going in the live app is actually what is causing battery issues. The test build should confirm that for us.
from mobile.
I've been testing the new build since last night and there's a huge difference now - basically zero battery life with general use. The feature works exactly as expected.
I did have to set the notification (through Android) to "Low Priority) to get rid of the persistent icon and drop it lower on lists of notifications showing on the notification shade. But those are personal preferences.
from mobile.
@ep2017 I may be able to adjust that priority programmatically. What does the priority do to the notification (I'm not an Android user)?
from mobile.
@kspearrin "Never make sound or vibrate. never peek and LED. Hide from lock screen and status bar. Notifications will be shown at the bottom of the notification center."
That's the official tool tip. Private Internet Access VPN operates in "low priority" mode and it helps to unclutter things!
from mobile.
@kspearrin Success 😀😀
from mobile.
Great! Any issues using the autofill that you have found?
from mobile.
@kspearrin I mainly concentrated on the battery consumption ,and i didn't noticed any issues . Well I will investigate more in coming days.
Can you please remove the app icon from the notification bar.? See screenshot
from mobile.
@jerryn70 You can remove the icon now by setting Bitwarden to low priority for notifications as I described above (at least until this is an option to do it in the app).
from mobile.
@ep2017 i don't know how to do that. this is the default settings in my phone. In on stock marshmallow. Can you plz guide me .
from mobile.
@jerryn70 Ah,looks like Nougat makes it easier.
from mobile.
@ep2017 But users below android 7 has no way to get rid of it.
from mobile.
@kspearrin Till now there is no issues on the test version. When I tap on the notification it will correctly shows the matching result. The only problem I noticed is bitwarden icon on the notification bar. Check my above post for its screenshot.
from mobile.
@jerryn70 I'm sure the feature will be added in-app. I'm using that method because it's a temporary option in Nougat. I also don't like persistent icons for most things.
from mobile.
I think this issue shouldn't be closed.
This fix isn't perfect:
• it adds a persistent notification (one more line in the notification panel and I already have my firewall, VPN and Privacy Guard)
• seeing the notification was a way to see if a browser is supported. No notification in Firefox => bitwarden won't work.
3, Scan when we click on password field (like laspass)
This is the best solution that you should try to implement IMO.
from mobile.
New test build: https://ci.appveyor.com/api/buildjobs/nxfyju03xeb212v1/artifacts/com.x8bit.bitwarden-778.apk
Find these new settings under Settings > Features. Please try them and let me know if any issues.
- Always Scan (default)
- Scan When Password Field Focused
- Persist Notification (I adjust the notification priority to low for this setting)
from mobile.
@kspearrin Nice! They all seem to work as expected (tested in three different apps), but the persistent notification icon is still showing at the top of the screen (unlike when I manually switch it to low priority).
In terms of battery consumption, is it safe to assume that persistent notification is the most battery friendly (since it never actively scans anything)?
from mobile.
There is a issue with 'scan only when password field focused' .
When I click on a password field , it shows auto fill notification and when I click the notification it shows the correct result. But when I click the result its not filling the fields . If I press back button (or go to back and) revisit the login page and click on the password box it will fill the password.
This is not only an issue it is a security risk. The password and username is not getting cleared from the clipboard after using that why when I revisit it fill the field .
See video (zip attachment) for issue. My english is too bad.
More update : After clicking the result i won't fill the fields. To make it work after clicking the result, 1st i have to click the username box then click password box.
Update video also added see below
Bitwarden Issue Updates.zip
from mobile.
New build with more fixes @jerryn70 : https://ci.appveyor.com/api/buildjobs/9y5bvx63i0u1mjex/artifacts/com.x8bit.bitwarden-783.apk
This build also adjusts the notification priority for "Persist Notification" to the lowest setting that I can set @ep2017 . Let me know if it has any affect:
from mobile.
@kspearrin I can't seem to get the auto fill service to enable (I've even uninstalled/reinstalled). It says that Bitwarden's accessibility option is "on", but the app stays: Status: Disabled.
from mobile.
@ep2017 Just close the autofill screen and navigate back to it. It should show it enabled. It doesn't auto-refresh when you back out to it from the android autofill settings menus.
from mobile.
@kspearrin Yeah, that's what I've been doing for the last several builds, but it's refusing to switch to "enabled" and the notification icon isn't showing up regardless of the setting.
Let me revert to the previous build and report back...
from mobile.
@kspearrin Ok, I uninstalled 783 (reverted the accessibility setting back to "off"first), rebooted, then reinstalled 778.
Turned auto-fill back on SUCCESSFULLY.
So I repeated the steps, but installed 783 and it won't even start the app - lots of errors in the logcat.
from mobile.
@kspearrin 784 works. The icon is still on the top bar, though.
from mobile.
@ep2017 See https://developer.android.com/guide/topics/ui/notifiers/notifications.html#Priority .
I tried default, low, and min. The build you have now is setting priority to min for the persist mode. Not sure what else I can do 🤷
from mobile.
@kspearrin I suspect that many apps simply work around the problem by hiding the icon as described here:
https://forum.xda-developers.com/showthread.php?t=1286318
The magic happens in two steps :
we move the icon to the edge of the bar so that it doesn't take some place between 2 other icons
we replace the original icon with a transparent 1x1px icon (R.drawable.icon_hidden)
from mobile.
Scan When Password Field Focused is still the best solution but it doesn't work on my end (v784).
With Persist Notification we don't have any indicator that a filed can be autofilled and it adds a new persistent icon in the notification panel.
Both alternatives use less battery (good news) but we can still notice an abnormal consumption when there's no field to autofill on the screen.
Check this out.
from mobile.
Version : 784.
method : scan on when password field focused .
when i click on the password field , auto fill notification shows and immediately it will remove from the notification panel. This issue occurs only on some sites.
When I try to login on the below given site, sometime auto fill shows and immediately it will get removed and Sometime it won't show auto fill.
https://www.desidime.com/login
@ep2017 Test the above link with 'scan only when password field focused' method
from mobile.
New build with more fixes to the password field focus option:
https://ci.appveyor.com/api/buildjobs/k0wr6ub3mw8r1c2m/artifacts/com.x8bit.bitwarden-785.apk
from mobile.
@jerryn70 The field focus seems to work with the 785 build.
@kspearrin 785 crashed on first start, but seems fine now. Will report if that happens again.
from mobile.
It's working now on the password field but not on the login field.
High battery consumption when opening a new screen (no changes)
Finally the notification doesn't disappear after returning to a previous web page.
from mobile.
@Primokorn It's only suppose to work on the password field.
Finally the notification doesn't disappear after returning to a previous web page.
Can you explain the steps for this one please?
from mobile.
v785 is not showing favorites and my vault. It always loading...........
from mobile.
@jerryn70 Try restarting the app?
from mobile.
Restart didn't worked. Force stop clear data worked .
But another issue is start-up take too much time .
This happens only if I remove bitwarden from recent apps ( means removing minimized app)
from mobile.
@jerryn70 Cold start times are a known problem. Unless the startup time is different/worse in these builds than previous, lets leave that discussion on another topic.
from mobile.
I know the cold startup issue, but the issue I said is not cold startup. Anyway lets leave that because now after few start and stop that issue is solved.
from mobile.
Can you explain the steps for this one please?
- I open https://zimbra.free.fr (webmail of my ISP) from the search results of Startpage.com (with Firefox Focus Blink Edition).
- I select the password field ==> bitwarden's notifications shows up
- I press the Back button of my phone ==> the keyboard is closed
- I press the Back button of my phone ==> back to the search results and the notification is still there.
from mobile.
I reproduced primokorn's issue in brave browser and focus browser. There is no issues with brave but there is issue with the focus . Its a browser specific issue.
What about having 'time out' settings for auto fill notification ?
Like after 20 seconds (or any other seconds/minutes choosen by the user) notification will be removed automatically. This will help to solve the issue (maybe be a temporary solution)
from mobile.
@Primkorn Firefox must not be sending the proper accessibility event for the back button change. Can you confirm that if you do another action, like go to another page or background the app that the notification will go away then?
from mobile.
@kspearrin
The notification only goes away when I hit the Home button of my device. It's still there if I continue browsing (same domain or a new one).
I confirm that it seems to be related to the browser since I don't have this issue with a CAF browser.
from mobile.
@kspearrin Battery result of 'scan only when password field focused'.
And I didn't find any issues with this method.
from mobile.
@jerryn70 Great! Can you try out the persist notification option for some time as well to make sure no issues? If all is good I will release this version soon.
from mobile.
@kspearrin There is a bug. All 3 methods have this same issue.
Open brave browser - open site 1 and immediately switched tab and open site 2.
Then switched tab to site 1 and try auto fill
- no notification for the default method,.
-no notification for scan only password field focused. - Always on notification method Not filling the field.
Everything is working on the site 2 .
Example If 1 open 3 tabs immediately then bitwarden won't recognize tab 1 and 2. Only The last created tab is recognized
from mobile.
@jerryn70 I cannot seem to reproduce that using the Android browser in the emulator. It sounds like some events might not get fired when switching tabs or something. Can you see if it happens in other browsers besides brave?
from mobile.
@kspearrin i tested it with tunga browser and it also have that issue
from mobile.
@kspearrin If 2 tabs load at the same time . Bitwarden recognize only the 2nd tab. And its not showing auto fill for tab 1 . It shows only for tab 2.
After showing auto fill on tab 2, if we switch to the 1st tab then it will show auto fill.
If 3 tabs are open then tab 2 and 3 will recognize and 1 is not.
brave Test.zip
from mobile.
Iam facing the same issue that early post by Primokorn
1. I open https://zimbra.free.fr (webmail of my ISP) from the search results of Startpage.com (with Firefox Focus Blink Edition).
2. I select the password field ==> bitwarden's notifications shows up
3. I press the Back button of my phone ==> the keyboard is closed
4. I press the Back button of my phone ==> back to the search results and the notification is still there.
The issue is with password field focus method. I faced this issue in application like flipkart app, jabong app etc.
The notification automatically removes after 30sec but IMO 30sec is too long .
15sec is enough i think.
Iam using v798
from mobile.
@jerryn70 Unfortunately within non-browser applications I cannot detect when the password field is no longer there (without consuming your battery), which is why it is on a 30 second timer.
from mobile.
@kspearrin okey then there is no other issues. I think now you can release it to public.
from mobile.
v1.6.1 is now available. Thanks all for the help in testing this.
from mobile.
Just noticed today a battery consumption of 22% after last update.
from mobile.
@Primokorn Was using the default settings, didn't noticed it was the most battery consuming one.
Thanks,
from mobile.
@dougmaitelli Yes, not a good idea for newcomers indeed. (@kspearrin what about switching to a more battery-friendly option by default? Don't you have bad ratings on Google Play?)
from mobile.
@Primokorn Also, the way I understand is that the app does not take advantage of the new auto fill services features on Android, this is why the scanning of fields on screen is needed.
Maybe it would make sense to invest in this new feature?
from mobile.
from mobile.
@Primokorn but we need android 8.0 device . Iam i correct ?
from mobile.
@jerryn70 Yep an Oreo firmware. (OT here btw)
from mobile.
@jerryn70 For the new auto complete features you would need an Oreo device, but old phones would work with the old feature anyway.
from mobile.
Fellas, I installed bitwarden a week ago, and now my battery gets to 70% overnight, where previously it was losing 2-3% maybe.
I don't think this bug is fixed.
(Galaxy A8, Android 9, kernel 4.4.111)
from mobile.
Related Issues (20)
- Send website name to Firefox Relay for username generation HOT 2
- When we can use passkey via bitwarden mobile? HOT 1
- Bypass maximum biometric unlock times limit HOT 1
- Canceling Android password has unexpected result HOT 3
- iOS push notifications are silent HOT 2
- new records are deselected on save HOT 1
- Spurious Bitwarden prompt in Duolingo (no visible fields) HOT 2
- Randomly crashing on launch (iOS, self-hosted Bitwarden) HOT 3
- The hover behaviour of a Samsung S Pen changes once the Accessibility Service Auto-Fill is activated on Android. HOT 1
- Password Fill Login Cut Off HOT 2
- Issue with "Remember me" Feature Retaining 2FA Key on iOS App HOT 2
- com.x8bit.bitwarden-fdroid.apk Version 2024.2.1 signature issues HOT 7
- Cannot save new login if personal ownership is disabled HOT 3
- Autocomplete not showing in browser HOT 2
- Loggin out behaviour is inconsistent HOT 1
- The Quick Tiles in the Android notification shade do not do anything when tapped, and may cause Bitwarden to close unexpectedly. HOT 8
- Automatic Dark/Light theme does not work HOT 2
- Android quick access button does nothing and crashes HOT 2
- App started to crash after version 2024.2.1 HOT 1
- The password generator incorrectly evaluates the minimum required number of special characters. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobile.