bitwarden / mobile

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

Password vault not syncing at every login #457

Closed 6w6OoPIRf3et9qT8tv7EyO1N5Y6RBqVD0zdY9ih closed 3 years ago

6w6OoPIRf3et9qT8tv7EyO1N5Y6RBqVD0zdY9ih commented 5 years ago

Whenever I add/update a password on a Laptop or Desktop, it’s not automatically syncing to my iPhone even though I authenticate my phone with FaceId. Push notifications are enabled to the app. I am using iOS 12 on iPhone X

7MDocUPfL15Iyivzglkd94JY7WvgjxizGyXhfrX commented 5 years ago

I noticed the same thing using Android 8.0.0 on a LG G7. I often have to manually sync first to have all new passwords. But not always, sometimes it gets synced immediately.

This also leads to the problem that when deauthorizing all sessions in the web vault, the active session on my mobile does not get deauthorized immediately. I first need to do something that triggers communication with the server (like manually syncing) that I get logged out. Would be nice if deauthorizing would lead to logging out immediately.

noWz78I9OeZZqWbCMBrDseFbCT7YSMpzbul5Uyh commented 5 years ago

Same Problem Herr, please give us an option to enable sync on every app start and Everytime autofill is searching the vault

eR1yW0NtctAPyCvf28PQhGjcp7eTnxdI4u3AhJY commented 5 years ago

No solution after 4 months? What is going on? Are you folks not supporting Bitwarden anymore? That would be a shame because it has so much promise. Do we need to pay to get support? If so, I will, because I think this is far superior to LastPass, or at least it could be if you get the glitches worked out.

eR1yW0NtctAPyCvf28PQhGjcp7eTnxdI4u3AhJY commented 5 years ago

Actually found that by deleting the app, redownloading it from the cloud, installing and logging in, the bug was fixed — at least temporarily. One of the first things that happens when you log in is it asks you to accept notifications in order to enable AUTOMATIC VAULT SYNCHRONIZATION. When I allowed notifications, BANG! All my recently added logins appeared. The app must have gotten out of whack somehow because I know I never turned notifications off for it.

jW3FdaoDNACon1z0G8ZuV1QkdQ8yuQeU1I3QhTt commented 5 years ago

Same problem on Android 8.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

Hi folks,

First of all, I would like to congratulate the dev team for this fantastic password manager. 👍 Like many people I trust more the open source projects than the proprietary ones. This is the only way to be 100% sure that there is not backdoor and there is no critical issue in the security.

Back to this issue: I'm running the latest apps on my Win laptop (Win10 Home & Pro), my android Tablet (Android v9) and my iPhone 7 (iOS 12.3.1).

Like some users, I got an issue with the iOS iPhone app (v2.1.2 build 53).

In my case, the pull mechanism is not working as expected, however the push is OK. I need to manually force the vault synchronization.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

@LapinFou What if you reinstall the mobile app? Does it work then?

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

I already try (without rebooting my iPhone), unfortunately this didn't solve the problem. Do I need to clear something after uninstalling the app?

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

@LapinFou Are you using Bitwarden Cloud or On-prem hosted?

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

At first, I tried the On-prem solution on a Synology NAS, but I decided that Bitwarden could be fully trusted. So, I switched on the Cloud version with the Premium subscription ( TOTP authenticator is a so cool feature 😃 ).

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

I forgot to mention that this issue is still the same using TouchID or with typing the master passwd.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

After you reinstalled, did you get prompted to accept push notifications upon logging back in?

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

Yes, the push notification windows pop-up just after the reinstallation. And, off course, I accepted it.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

Unfortunately, I am still not able to reproduce the issue. WE'll have to keep looking.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

This is the worst kind of bug. 90% of the job is to be able to reproduce it on demand. Don't hesitate to contact me if I can help you in any ways.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

If this can be any helpful, from my iPhone, the modifications are immediately push on the vault. However the sync date & time is not updated on the iOS app.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

@LapinFou That is the expected functionality. The timestamp you see under Settings > Sync is the last time a full sync has occurred, not an incremental sync like when modifying a single item.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

OK. Got it. Thanks for the information.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

After upgrading to iOS 12.4, it looks like it was working better, but finally not 😢 Here is a procedure which I can reproduce on my iPhone.

I hope this can help.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

As a workaround, it could be nice to force a synchronization when holding and sweeping the finger to the bottom. Same gesture than for the iOS mail app.

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

@LapinFou I tried these steps and wasn't able to reproduce. All actions synced via push notification. Will have to continue to investigate.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

Damn it... 😞 I guess your tried several times?

I tried again few minutes ago, and I can reproduce the issue following the procedure described above. I tried with my iPhone connected to the WiFi and only connected to the 4G network. Same behavior. This bug is really a nightmare...

For sure, there is something which is consistent. As long the BitWarden app is opened, the sync is working. As soon as the BitWarden iOS app is closed, it will not resync properly the next time the app is launched if some items have been added or deleted from another client.

EeyWmq6LRzd2II9QI1j3eXLCbbGj5BMYHk2SRQ1 commented 5 years ago

Just wanted to chime in and report i'm having the same issue on iOS and an iPhone XS.

Something that i've noticed that hasn't been mentioned here though:

  1. Started a new job, set up Bitwarden on my work laptop.
  2. Saved several passwords within Bitwarden, everything seemed to be syncing properly.
  3. Was given a temporary computer to use in the training room, and needed to log into an account, so i opened bitwarden on my iPhone.... the password that i was looking for was not synced.
  4. Dragged the page down several times hoping Bitwarden would sync... no bueno, password still missing.
  5. Installed Bitwarden Firefox extension on the desktop computer i was using, the password was visible and i was able to login.
  6. After installing Bitwarden on my desktop computer, the password suddenly appeared on my iPhone.

This is a really, really, REALLY annoying problem and makes me extremely uneasy about using Bitwarden in a work setting (as opposed to personal), as I won't always have time to dick around with it, uninstall the app, re-install, etc, while i'm sitting with clients or trying to log in during a presentation. This bug was reported 6 months ago, i hope Bitwarden are taking it seriously.

7MDocUPfL15Iyivzglkd94JY7WvgjxizGyXhfrX commented 5 years ago

Still have the same problem on Android 9 now with the latest Bitwarden version.

When I made a change in Safari Browser extension and open Bitwarden on my phone, I don't see the changes. I need to sync manually to see the changes. Bitwarden stated that the last sync was on Aug 7, although I just unlocked Bitwarden on Aug 12.

Of note: On my iPad running iOS 12 everything seems to work properly. Don't have the same problems there. I will try to reproduce the problem there as well, but I didn't notice it thus far. Update: No, I have the same problem with my iPad :) Also on iOS 13.

@kspearrin Wouldn't it be possible to add a feature that Bitwarden automatically syncs when unlocking the vault? By that at least everything would be synced at login or unlocking. Push-sync would still be nice but part of the problem would be solved by that. Would really appreciate if such a force sync at login or unlock would be implemented. Thanks a lot!

@lumpycustard No need to uninstall, reinstall every time. Doesn't a manual synchronization work for you as well? You will find the manual sync under settings. Just hit the button 'Synchronize' and all your changes and new passwords will appear.

EeyWmq6LRzd2II9QI1j3eXLCbbGj5BMYHk2SRQ1 commented 5 years ago

@chewiesGit what is the point of the refresh animation that triggers when you pull down on the password list if it literally doesn't do anything?

Why doesn't the "pull down" action trigger an actual sync?

What is the pull to refresh action actually doing?

20190813_134328000_iOS

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 5 years ago

Pull-down refresh re-loads the list from the local database. It doesn't sync data from the server.

13HopMrhNgy8t6nRb0DL6YQBXejlUwppaSZkJVs commented 5 years ago

A forced sync on a pull-down-gesture would help a lot if there are synchronization issues like described above. I always have to open settings and force sync when using my iPhone.

EeyWmq6LRzd2II9QI1j3eXLCbbGj5BMYHk2SRQ1 commented 5 years ago

@kspearrin Thanks for confirming, but what exactly does that achieve? My phone is already displaying the local list, and the local list is missing data stored in my Bitwarden account.

In other words, if i'm viewing this thread and i get an email advising that you've replied to me, when i refresh the page, my expectation is that my browser will reach out to git to receive an updated version of that page, as the page my browser is displaying is out of date.

It doesn't make any sense to me that refreshing Bitwarden via the pull down gesture simply reloads the data that i'm already looking at -- however i am a layman and more than likely am completely missing the point.

Either way, i have purchased the pro version of the app and fully support the OSS movement, however this current bug presents a very annoying and (in my view) easily resolvable problem.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 5 years ago

@kspearrin FYI, the issue is still present with the version 2.2.1. So, the "Fix some sync issues" didn't solve this bug.

iqdaAapsX4RxB1QLUQUIS9SXfh86paNtWR2lKJw commented 5 years ago

I actually have the same problem with updated iPhone xs max. Hope there will be a solution to this.

hwuXRYMPM8ADHYMub4ZK447fp7XiyAADS9WTQo8 commented 5 years ago

Experiencing same issue - iPhone XS

DajyBTzpUUTYAqG8eF1jnJdrvxZkcTe5aTPkv8A commented 5 years ago

I have exactly same problem. Push notifications are ON. New passwords added from chrome plugin or web do not sync with mobile app right away. Only when I opened the mobile application for the third time in a row, new passwords were added.

GJz2DHiFjny9jkGozrUiArjqrdWUsKF7apm7YQI commented 5 years ago

Same problem here. The sync on Android failed and my new password was even overridden in the web vault after I added the apps url during Autofill. There isn't an entry with password history (because the password wasn't changed yet on my mobile device) and there is no saving of conflicting entries (which is a really bad thing to be honest, because this means I'm now locked out of one of my accounts with no way of getting myself back in).

X3DUsRW6089qstlkLiCYGEG2tpCGzrDqyC5xC3Z commented 5 years ago

Also got the same problem. I have high hopes for this, but unfortunately this makes it extremely tedious to use.

4uQfLzTaBrUyfKyLuQQgXApSDn342sQUI8hdins commented 5 years ago

I also have the same issue. iOS 12.4.1 on an iPhone 7 Plus ... all notifications are enabled, yet have to manually sync the application whenever a password has been modified via my desktop or laptop (not tried directly editing an item in the web vault yet). These are generally edited via the browser plugin rather than using the desktop application, so not sure if that's of any relevance or not.

YuEsOt3bibfAKUTray1demZdiZw57RlcVhjyug5 commented 5 years ago

Same issue here. iOS 13.1.2 on iPhone XS Max. Bitwarden app version 2.2.5 (59). When I add an item on the website it doesn't show in the iPhone app unless you log out and re-enter what makes it too tedious. Logging out and re-entering might make sense but then why the face-id?

ghost commented 4 years ago

Synchronisation has never worked properly on two iOS devices of mine. It seems to be broken on a fundamental level and it always has been. Whenever I make changes, I have to enter the app and manually synchronise from the settings for the changes to appear. Background synchronisation does seem to work to some degree, but it is nowhere near instantaneous.

I cannot reproduce the problem with alternative password managers which also utilise notifications for synchronisation, and yes, both devices permit notifications from Bitwarden.

FOg8HTuDz4iBS5IdHPvmD7HCk4BnpYEk6GzgWZb commented 4 years ago

I thought I had the same problem, and maybe I do as I haven't fully tried to debug this myself.

One thing I have noticed is that I was expecting the sync to happen when I unlocked the app with password/fingerprint, the app was still logged in just locked.

Is sync meant to happen during app unlocking, or only when a clean login action is performed?

iOS: 13.1.2 App: 2.2.5

7MDocUPfL15Iyivzglkd94JY7WvgjxizGyXhfrX commented 4 years ago

@therealgambo Shouldn't changes to the vault that have been made at other sources be pushed to the smartphone app immediately, no matter whether you log in to or unlock the app? This is how I understood it. However, a full forced sync at every login or unlocking would definitely solve the problem for once.

@kspearrin Just to repeat this again (I mentioned this already in my first post in February): To me this is actually a big security issue. The thing is that when you choose to "Deauthorize all sessions" (in your browser vault), I actually expect that my smartphone vault should be logged out immediately. However, unlocking the app (i.e. with a pin or fingerprint) is still possible since the app did not sync with the vault and didn't notice the deauthorization. Only as soon as you sync manually, the app logs out as it then notices the deauthorization and you have to log in with 2fa. So, for example, when your phone gets stolen and you deauthorize all sessions, your phone is still logged in, which is very problematic I think, as the vault was not deleted from the phone in that scenario!! In my eyes, this problem should therefore get a little more attention, as this is not only a small inconvenience of having to sync manually all the time, but a big security issue.

Therefore, wouldn't the forced sync at login or unlocking be a quick workaround/solution until we find out what the actual problem is?

pPmnBRRYhIemiuiy3VBYULJIzQyZaEvWMbCPH1P commented 4 years ago

@chewiesGit

Therefore, wouldn't the forced sync at login or unlocking be a quick workaround/solution until we find out what the actual problem is?

This is what the app already does. There was a bug in the last version that would cause an issue, however. It should now be resolved in v2.2.6.

QLackv26LTpSE7WRmIevmoGvVNQf1akw1QDxSFT commented 4 years ago

I’ve been synchronising my vault manually since I switched to Bitwarden in 2017. If there’s anything I can do to help as an end user, let me know. This issue needs more attention.

7MDocUPfL15Iyivzglkd94JY7WvgjxizGyXhfrX commented 4 years ago

@kspearrin

Update came tonight and I just tried it out. Works perfectly! That was very quick! 😄 Thanks a lot!!

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 4 years ago

On the French AppStore, the latest available version is still the v2.2.5 Can't wait to test the news v2.2.6 version!

d4mADLzp18R4i7XvQ1dL5SFzk2PcWaCCzdB1U3M commented 4 years ago

AppStore still showing v2.2.5 for me (in the UK). How long should it be before v2.2.6 shows up?

6w6OoPIRf3et9qT8tv7EyO1N5Y6RBqVD0zdY9ih commented 4 years ago

@kspearrin I still see v2.2.5 in AppStore. I hope Apple finishes the review soon.

EeBH4JyQsnR1fSGwyZJCmLiNOJuDHbTXZmfpaZo commented 4 years ago

Maybe the v2.2.6 is only for Android devices? Still no v2.2.6 on the French AppStore. 😢

QLackv26LTpSE7WRmIevmoGvVNQf1akw1QDxSFT commented 4 years ago

Remember this update won’t fix the root of the problem. Yes, the vault may sync again upon login, but Bitwarden still won’t background push sync properly like any other password manager does. 😢

d4mADLzp18R4i7XvQ1dL5SFzk2PcWaCCzdB1U3M commented 4 years ago

I'd like BitWarden to sync every time I foreground the app, not just on login. Or pull-down to sync. Or have an explicit sync button on the My Vault screen. Anything, just please don't bury it in Settings. If auto-syncing is an issue then make it easy to manually sync.

QLackv26LTpSE7WRmIevmoGvVNQf1akw1QDxSFT commented 4 years ago

@thepaulcooper Pull-to-sync would be appreciated. No idea why this isn’t already a thing.

Our current options seem to be:

FOg8HTuDz4iBS5IdHPvmD7HCk4BnpYEk6GzgWZb commented 4 years ago

@kspearrin still not seeing v2.2.6 on iOS store, surely it doesn't take nearly two months to be approved?