bitwarden / mobile

Retired Bitwarden mobile app for iOS and Android (MAUI/Xamarin).
https://bitwarden.com
GNU General Public License v3.0
75 stars 9 forks source link

Slow loading after unlock on Android #1723

Open 3noQGVg4lMo3llyUSAetRH6o0N3dUr3ty1JZB3e opened 2 years ago

3noQGVg4lMo3llyUSAetRH6o0N3dUr3ty1JZB3e commented 2 years ago

Steps To Reproduce

  1. Unlock Bitwarden using fingerprint
  2. Try using the UI

Expected Result

I can start using the app without noticeable delay.

Actual Result

There is a pretty significant delay before the UI is rendered at all and yet another delay before I can start using it.

Screenshots or Videos

https://user-images.githubusercontent.com/95007229/164605523-684039f8-2502-463d-a542-afab3d6db669.MOV

Additional Context

This is specific to Android. I have an iPhone with Touch ID - one much older and less performant than the Android phone in the video - and it has no noticeable delay between when I touch the scanner and when I can start searching or selecting a login.

This only happens when unlocking the vault is necessary. As can be seen from the video, if it was already unlocked beforehand, there is no delay.

Operating System

Android

Operating System Version

12

Device

Pixel 5

Build Version

2.15.0

Beta

juOZhVIbyYTNRcal2uOxQJ84BtlobfNc9bwXuYx commented 2 years ago

I am having same problem with my Galaxy Note 10 on Android 12

DOvh7fjctw4NoudekRYlqnP0Ie2ZJSkYt3olYPP commented 2 years ago

Same or bit slower here with Samsung galaxy

5Wx3tlwwDRwaCKVMi8BsHgTeoApi7TmufHmx9qC commented 2 years ago

Always slow

juOZhVIbyYTNRcal2uOxQJ84BtlobfNc9bwXuYx commented 2 years ago

Just an update, I have changed my handset to Nothing Phone 1, which is much faster phone than my Galaxy Note 10 Lite, but the application still taking huge time to open and load. I am currently using bitwarden third-party app called Keyguard (https://play.google.com/store/apps/details?id=com.artemchep.keyguard&gl=US), compare to Bitwarden official app, Keyguard opens and load lot more faster. Bitwarden took 17.80 seconds to open and load, where as Keyguard only took only 3.45 seconds.

dri6VAf6YibYJUz4h8wEzeYA9TvX3QIg2e3yqTT commented 1 year ago

Same problem for me. I typically experience around 7 seconds from the vault is unlocked, till I can use/see the entries. THAT.IS.LOONG.TIME!

I have tried different devices, and different accounts with both 1100+ entries and one with <25. Same problem.

MoFjZ7FlpbbBoTJXu2K0PBsqqEmVL8ypiH1v3yi commented 1 year ago

Aslo to me the vault, on the mobile android app (Galaxy 40), takes 4-7 secs to be available. It is a lot of time, especially because I login MANY times a day (I am a web professional). PLS, try to fix it.

5Wx3tlwwDRwaCKVMi8BsHgTeoApi7TmufHmx9qC commented 1 year ago

Looks like the app is not available on the playstore anymore. Can anybody share the apk ?

obVmkIwduZYL6yaLmVnTUeT5eWg0k3FLp6fmqrn commented 1 year ago

Looks like the app is not available on the playstore anymore. Can anybody share the apk ?

@mhamzas

It is!!! (Please do not post unrelated comments to the issue topic)

https://play.google.com/store/apps/details?id=com.x8bit.bitwarden

Agnf6NdttbddBW5RKo9hkEUTkYoYUzuZ8h4b2RD commented 1 year ago

Hi all, thank you for reporting this and sharing details. I will pass this on to the team and we will make time to resolve this. Apologies for any inconvenience this may have caused. Thank you for your patience!

tfNsaDS5VfGlUjZ6vSpUkAWJFeTM25kh1cXG0We commented 1 year ago

I just want to add that I'm experiencing this issue even when not using BW with assistive features enabled or auto-filling inside other apps. Here's what I'm seeing in my Sansumg Galaxy phone with Android 8 and about 450 entries in the vault on a 300Mbps wifi connection:

I hope this is useful for the devs to debug the issue.

jAzvUGZyjwyCBzyxOQsbXtAKndrbwHT3XRCjt93 commented 1 year ago

I have same issues on Huawei Mate 10 pro with emui 12 - very slow start (+10s), very slow load after unlock (+10s). this seem to be getting worse with time, either with app updates or vault size (400+ entries now).

tfNsaDS5VfGlUjZ6vSpUkAWJFeTM25kh1cXG0We commented 1 year ago

@dbosompem any feedback from the dev team? Any ETA for fixing this?

It has been almost 11+ months since this issue was created. It clearly feels that the problem is becoming worst over time, even though the # of entries in my vault is the same. I already had to install another app to manage my TOTP keys because having to wait minutes just to get a code was driving me nuts. The app on Android is barely usable in my phone now. :worried:

Agnf6NdttbddBW5RKo9hkEUTkYoYUzuZ8h4b2RD commented 1 year ago

Hi @flaviovs , thanks for checking in. I have passed this on to the team and the team is aware. This has been added to a list of performance improvements we want to look at, for mobile. I will follow up with team so that a higher priority is assigned, and will share with you an ETA once that is certain. Apologies for the inconveniences and thank you for your patience!

obVmkIwduZYL6yaLmVnTUeT5eWg0k3FLp6fmqrn commented 1 year ago

Dear @dbosompem, now that you are on it, Please check the firefox extension as it got really bad (Almost unusable)

Screencast from 12-12-2022 08:19:52 PM.webm

jAzvUGZyjwyCBzyxOQsbXtAKndrbwHT3XRCjt93 commented 1 year ago

seems that deleting application data (remove cache + remove data) and logging in again fixes issues on my device - its now fast again. This is first time I did it since logging in on this device aroud 12/2018.

scRJpYBJDE197G4IkQi15LHrfibjdmKjWRMSCt7 commented 1 year ago

I tried @bond-os workaround and got a huge speedup! Thank you! I had about 250MB of Data storage reported before the cleanup and about 6 MB after. I assume something is piling up in the data. I have the app installed on the same phone for several years as well.

jAzvUGZyjwyCBzyxOQsbXtAKndrbwHT3XRCjt93 commented 1 year ago

Good point on data size @SPFZ, on my device it also was more than 200MB and now it's around ~6MB.

mQjWdaCkppCi7sImPVHaN3jiwwGgaRSLjsdLNik commented 1 year ago

This worked for me, too. Similar experience: was at ~328MB Data, after syncing 1.3MB.

tfNsaDS5VfGlUjZ6vSpUkAWJFeTM25kh1cXG0We commented 1 year ago

@bond-os, thanks for the tip. Granted the app is responsive again after following your suggestion.

@dbosompem, thank you and the team for being on top of this issue.

bsPNohsoydsyef1jjRLOFYKrFTNPJYlCLnzH9YO commented 1 year ago

Recent member (2 months old) I experience the same issue as the one reported by OP. Some details: -phone is Huawei P30 Pro, non-rooted, 8GB RAM, 256 GB native internal storage, Android 12, Security patch level November 1 2022

@bond-os Unfortunately this did not work for me. Data is 8.4 MB. @dbosompem fyi, I really hope this can be solved, as I use randomly generated passwords frequently and the simple act of opening Bitwarden on Android is very painful.

YlWDBNnSYXsHprxJGpZcAp3JdSWuBgLlz79BW3n commented 1 year ago

@vrosu any chance you could test it with Keyguard (note that it is a third-party client, not affiliated with Bitwarden)? Curious about what the performance would be.

k93L7jqXsB8CuitKXISoDhhT1mkgSKjmRDK75F8 commented 1 year ago

Seems like this is probably the reason the slowness is so painful: https://github.com/bitwarden/mobile-maui/issues/2006

bsPNohsoydsyef1jjRLOFYKrFTNPJYlCLnzH9YO commented 1 year ago

Commenting to be aware of what worked for me, based on the tech support case I opened. It seems I had many entries in the trash folder. In Android, the bitwarden client has the + button exactly on top of the trash folder count... And because of this I never saw that I actually had trash entries. Also, in the desktop bitwarden client there is no item count... So again I was not aware of the 2600 items in trash. As soon as I cleaned the trash, the load time went to 3 seconds. Still slow, but it is not that bothering now

t0NlKIHJRlwhmm0bB7Etn3YBjePVduX0rDJjgo0 commented 10 months ago

I'm having this issue too. Clearing local storage hasn't helped. No items in my yeah. I'll considering moving to 1Password or ProtonPass as a result of this.

obVmkIwduZYL6yaLmVnTUeT5eWg0k3FLp6fmqrn commented 10 months ago

I'm having this issue too. Clearing local storage hasn't helped. No items in my yeah. I'll considering moving to 1Password or ProtonPass as a result of this.

The loading problem also happens on Browser Extensions but it's only for logging in and it's quite good after that. I wish they could fix this problem as it's disappointing especially while filling in the password on the websites.

NyATVxAxY92OcrAcclyxcBN5X0k6VqyJgXv58No commented 5 months ago

The Bitwarden Android app gets slower and slower I subscribed a family plan a year ago, first for me, the for my children. The average opening time is ~5-10s on our android phones (Oppo, Cat). Almost unuseable Only my wife is happy: she’s got an iPhone!

We’ll try Keyguard or switch for another password manager.

rSDxRjXP883M0BKIPJPlMT76wDS33KyLlzjUtQj commented 4 months ago

I can imagine, this might get better with the new native mobile apps, presumably coming in a few weeks/months… https://www.reddit.com/r/Bitwarden/comments/1b32bbz/going_native_the_future_of_the_bitwarden_mobile/?share_id=8bXQrGpuuXHxb8xiTrlKn&sort=new

3noQGVg4lMo3llyUSAetRH6o0N3dUr3ty1JZB3e commented 4 months ago

That's lovely news. No amount of reinstalling the app and clearing data has fixed this for me.