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

Connectivity error message when mobile device goes to sleep #39

Open
asorici opened this issue Sep 17, 2018 · 1 comment
Open

Connectivity error message when mobile device goes to sleep #39

asorici opened this issue Sep 17, 2018 · 1 comment
Assignees

Comments

@asorici
Copy link
Collaborator

asorici commented Sep 17, 2018

Why

The danish end-user observed the following behavior when the CAMI Android App checks for connection availability:

Sometimes the box appears that "Interconnection Lost ... bl.a. " and the user is taken back to the Login screen.
This almost only happens for me while the tablet is turned off - and thus, when I turn on the device, I get this message.
It would be really great NOT to get this message - as it is not true - the tablet did not lose its connection - it just turned it off during sleep.
Thus, it would be better not to have this error message, and simply try to see if the app can survice -- and if not - just auto present the login screen.

What

  • a handler for the connection status is implemented when the app gains focus
  • if the app has no internet connection, bring up the login screen and defer the no connection error to the login process
@asorici
Copy link
Collaborator Author

asorici commented Oct 5, 2018

Since there is no way of determining whether the phone has gone to sleep I propose the following:

  • display the message only if the measurement refresh call fails 6 times in a row (i.e. since you are refreshing every 10 seconds - a whole minute has to pass without connectivity, such that the message gets displayed)
  • remove the message completely, since no connectivity interruption is expected (the tablet never leaves the house)

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