Offline mode not detected in timely fashion while saving with internet blocked by captive portal #896

Closed
opened 2025-11-26 22:33:33 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @mwisnicki on GitHub (Dec 29, 2019).

Originally assigned to: @mpbw2 on GitHub.

I was on the airplane setting up new user for the captive portal (WiFi on but restricted internet) and generated new password with bitwarden. Since saving was taking forever I switched to browser and continued signup.

Later on I couldn't find new account in BW.

Originally created by @mwisnicki on GitHub (Dec 29, 2019). Originally assigned to: @mpbw2 on GitHub. <!-- Please do not submit feature requests. The [Community Forums][1] has a section for submitting, voting for, and discussing product feature requests. [1]: https://community.bitwarden.com --> I was on the airplane setting up new user for the captive portal (WiFi on but restricted internet) and generated new password with bitwarden. Since saving was taking forever I switched to browser and continued signup. Later on I couldn't find new account in BW.
Author
Owner

@kspearrin commented on GitHub (Dec 29, 2019):

This is expected since modifying the vault offline is not supported. You should have received an error message if the app detects you are in airplane mode though. I guess that didnt work?

@kspearrin commented on GitHub (Dec 29, 2019): This is expected since modifying the vault offline is not supported. You should have received an error message if the app detects you are in airplane mode though. I guess that didnt work?
Author
Owner

@mwisnicki commented on GitHub (Dec 29, 2019):

I didn't go back to Bitwarden so it was probably killed by the system at some point and the message with it. I think the app should detect offline faster, I waited about a minute looking at "saving..." before I switched away.

I hope full offline mode is something in the plans?

@mwisnicki commented on GitHub (Dec 29, 2019): I didn't go back to Bitwarden so it was probably killed by the system at some point and the message with it. I think the app should detect offline faster, I waited about a minute looking at "saving..." before I switched away. I hope full offline mode is something in the plans?
Author
Owner

@mwisnicki commented on GitHub (Dec 29, 2019):

Found the request for offline mode: https://community.bitwarden.com/t/offline-management-of-writeable-vault-items/107

So let's focus on the better offline detection/error in this ticket.

@mwisnicki commented on GitHub (Dec 29, 2019): Found the request for offline mode: https://community.bitwarden.com/t/offline-management-of-writeable-vault-items/107 So let's focus on the better offline detection/error in this ticket.
Author
Owner

@bfren commented on GitHub (Mar 7, 2020):

+1 for better offline detection. I'm happy to create a new issue as this is not precisely the same as this one, but it's so close I figured it was better to comment here than create a new issue.

My setup is as follows:

  • self-hosted BitWarden using docker on a QNAP NAS
  • nginx proxy server operating on a Raspberry Pi
  • ports 80 and 443 forwarded to Raspberry Pi by router (to provide valid SSL certificates and access via a domain name rather than an IP address)
  • proxy server denies access except to local IPs

Everything works brilliantly - I moved from LastPass, and your software is IMHO vastly superior to theirs. However there is an issue in the iOS app.

Context (1): phone in airplane mode

  • action: try to create new entry
  • result: app says that it needs internet access, so refuses to save item

Context (2): phone with internet access but outside home network

  • action: try to create new entry
  • result: app allows save button to be pressed, closes entry as if it has saved the item, but the item is not in the vault afterwards

The same happens when editing items.

Suggestion:

  • rather than check for general internet connection, attempt connection to BitWarden server / api
  • if any status other than 200, act as though there is no internet connection

That way avoids the step of editing an item, and thinking it has saved, when it hasn't.

Of course, I could stop nginx allowing only local access, but I would prefer to keep access local only for security reasons.

@bfren commented on GitHub (Mar 7, 2020): +1 for better offline detection. I'm happy to create a new issue as this is not precisely the same as this one, but it's so close I figured it was better to comment here than create a new issue. My setup is as follows: - self-hosted BitWarden using docker on a QNAP NAS - nginx proxy server operating on a Raspberry Pi - ports 80 and 443 forwarded to Raspberry Pi by router (to provide valid SSL certificates and access via a domain name rather than an IP address) - proxy server denies access except to local IPs Everything works brilliantly - I moved from LastPass, and your software is IMHO vastly superior to theirs. However there is an issue in the iOS app. Context (1): phone in airplane mode - action: try to create new entry - result: app says that it needs internet access, so refuses to save item Context (2): phone with internet access but *outside* home network - action: try to create new entry - result: app allows save button to be pressed, closes entry as if it has saved the item, but the item is not in the vault afterwards The same happens when editing items. Suggestion: - rather than check for general internet connection, attempt connection to BitWarden server / api - if any status other than 200, act as though there is no internet connection That way avoids the step of editing an item, and thinking it has saved, when it hasn't. Of course, I could stop nginx allowing only local access, but I would prefer to keep access local only for security reasons.
Author
Owner

@mrx23dot commented on GitHub (Mar 21, 2023):

Email field filling is not offered for captive portal in UK on Northern Rail trains.
(in airplane mode, wifi connected, but no internet yet)

At least commonly used email list under context menu would be great while offline.

@mrx23dot commented on GitHub (Mar 21, 2023): Email field filling is not offered for captive portal in UK on Northern Rail trains. (in airplane mode, wifi connected, but no internet yet) At least commonly used email list under context menu would be great while offline.
Author
Owner

@vvolkgang commented on GitHub (Jun 20, 2024):

Issue migrated to https://github.com/bitwarden/mobile/issues/682

@vvolkgang commented on GitHub (Jun 20, 2024): Issue migrated to https://github.com/bitwarden/mobile/issues/682
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#896