bitwarden / ios

Bitwarden mobile app for iOS.
https://bitwarden.com
GNU General Public License v3.0
105 stars 10 forks source link

Can't sync from self-hosted vault #742

Closed navels closed 1 month ago

navels commented 1 month ago

Bitwarden Beta

Steps To Reproduce

Change a vault entry (or add/delete an entry) via the web UI or chrome extension. Open the iOS app and pull down to sync.

Expected Result

Changes are reflected in the iOS app.

Actual Result

Pulling down appears to trigger a sync, as the grey spinner appears briefly and there are no error messages, but the changes aren't reflected in the app.

Additional Context

Some notes:

Experiencing the same behavior in the legacy iOS app.

If I log the client out and back into the vault, a sync is performed and vault changes are reflected in the client. It is only pull-to-sync that isn't working.

I am using the Vaultwarden backend (previously known as bitwarden_rs). I have logging enabled on the backend and I can see there is no request made to the backend when manually syncing in the iOS app. Compared to when I manually sync the browser extension, which shows a sync request:

Jul 17 10:00:34 vaultwarden vaultwarden[94606]: [2024-07-17 10:00:34.969][request][INFO] POST /identity/connect/token
Jul 17 10:00:34 vaultwarden vaultwarden[94606]: [2024-07-17 10:00:34.970][response][INFO] (login) POST /identity/connect/token => 200 OK
Jul 17 10:00:35 vaultwarden vaultwarden[94606]: [2024-07-17 10:00:35.075][request][INFO] GET /api/sync
Jul 17 10:00:35 vaultwarden vaultwarden[94606]: [2024-07-17 10:00:35.098][response][INFO] (sync) GET /api/sync?<data..> => 200 OK

I get nada in the logs when syncing in the iOS app.

Build Version

2024.7.0 (1194)

Environment Details

Issue Tracking Info

Neonwarden commented 1 month ago

Hi there,

I attempted to reproduce your issue and was unable to do so. Can you make sure the Enable sync on refresh option is enabled to allow your vault to be synced using a pulldown gesture on the My Vault tab?

We use GitHub issues as a place to track bugs and other development-related issues. If your issue persists, please write us back using our “Contact Support” form located on our Help Center (https://bitwarden.com/help/).

You can include a link to this issue in the message content.

Alternatively, you can also search for an answer in our help documentation or get help from other Bitwarden users on our community forums (https://community.bitwarden.com/c/support/).

The issue here will be closed.

Thanks!

navels commented 1 month ago

well derp . . . today i learned about that setting