Skip to content

App connectivity issue #945

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

Closed
arimourao opened this issue Feb 5, 2019 · 10 comments
Closed

App connectivity issue #945

arimourao opened this issue Feb 5, 2019 · 10 comments
Labels

Comments

@arimourao
Copy link

Bug report

Current behavior:

The app fails to asses that my phone is connected to the internet through a Wi-Fi connection. Then the only options shown are to start an offline game or Analysis board. This happened a lot, under different Wi-Fi connections and I'm pretty sure there wasn't any kind of internet connection issues, because I was able to browse webpages, watch streams on Youtube, and so on.

Expected behavior:

The app should correctly asses that Wi-Fi connection is up and running

Steps to reproduce:

This is a hard one to reproduce. It doesn't happen always. But when I turn off my wi-fi and turn it back on, it fixes temporarily the issue. It just happens after I lock the screen of my phone and the app is running in the background.

Environment information

  • phone hardware: Motorola X1
  • phone operating system version: Android 8.0
  • version of lichess mobile: 6.1.1
@freefal
Copy link
Collaborator

freefal commented Feb 20, 2019

I have had this issue as well. My workaround is to kill the app and restart it. If you find steps to reliably reproduce the issue, please let us know as that would be very helpful in developing a fix.

@WienerBrit
Copy link

I keep having this issue too. Including in the middle of the game. I show connected. My opponents clock runs down. Then I lose on time.

@jtagcat
Copy link

jtagcat commented Jun 12, 2019

Same thing, happens on stable wifi and (this) also on stable 4G connections. https://sh.c7.ee/6usXx/Screenshot_20190612-143837.jpg
In this game, the opponent actually moved (ate my pawn). In fast-paced games I just don't have the time do kill the app. I'd also note that I noticed, the wifi had turned on and mobile data off. I keep mobile data always on and I can't find any reason it would turn off.

@veloce
Copy link
Collaborator

veloce commented Jun 12, 2019

apache/cordova-plugin-network-information#64 could explain the problem.

@veloce veloce added the bug label Jun 12, 2019
@ilovelinux
Copy link

Same here

@P1ng-W1n
Copy link

P1ng-W1n commented Aug 6, 2019

I had the same issue on my Samsung Galaxy A5 (both on Wifi and on 4G), and it turned out that the actual issue wasn't related to connectivity (according to the firewall logs it was able to reach lichess.org and socket.lichess.org without any issue), but rather to UI visualization (meaning that it was able to connect to the server, check my network connectivity status and also my latency, but wasn't able to show non-static UI elements (mainly the ones that are downloaded from the internet, like latest puzzle, available game modes and so on..)
It seems to me that the issue happens when Chrome is disabled and your phone performs an "Application Optimization" (like the one it does after each update/upgrade).
Enabling Chrome did solve the issue in my case.

Edit: Here's the logcat output: https://pastebin.com/5jyLvuKd

@ilovelinux
Copy link

Crome disabled here too. I think it's related

@jnslmk
Copy link

jnslmk commented Aug 10, 2019

I am experiencing the same issues on lineages with Chrome uninstalled and the system browser deactivated. Turning them back on/reinstalling them didn't help unfortunately

@arimourao
Copy link
Author

I noticed that this bug seems to have be solved. Just strange that no pull request did mention this issue. I think it can be closed now.

@veloce
Copy link
Collaborator

veloce commented Oct 2, 2019

I think it was fixed with ef71daf

@veloce veloce closed this as completed Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants