Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Offline Mode is Slow #124

Open
elmodor opened this issue Feb 10, 2024 · 2 comments
Open

Android Offline Mode is Slow #124

elmodor opened this issue Feb 10, 2024 · 2 comments

Comments

@elmodor
Copy link

elmodor commented Feb 10, 2024

Issue

When opening the android app (v1.1.4) while the app is not able to connect to the server (either because the phone is on a network which can not reach the groceries server and even if the phone is in airplane mod) the app tries to "Log in" for up to 60 seconds until the "Login offline" screen appears.
Waiting or up to 60 seconds before being able to log in is quite a lot of time if you are in the store and want to check the grocery list.

How to Reproduce

  1. Install android app v.1.1.4
  2. Connect to a server
  3. Close the app (kill it)
  4. Change network or set phone in airplane mode
  5. Open the app
  6. Wait up to 60 seconds before being able to continue offline (sometimes it is faster)

Expected Behavior

I would expect that the app knows way sooner that it isn't able to connect to the server (maybe after 3-5 seconds at most) and offers the user to work offline.

@davideshay
Copy link
Owner

Sorry for the delay...
Having trouble reproducing on my device -- what device are you using?
I'm trying to put some more debugging into the next release so I could get debug logs out of the android app and not just the web version.

@elmodor
Copy link
Author

elmodor commented Jan 23, 2025

I was using a Redmi Note 8 Pro.

Does the 1.1.6 version has the additional logging included?
The demo server seems to be offline, so I would need to setup the server to check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants