nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.27k stars 1.77k forks source link

Waiting for Wi-Fi // bug #2140

Closed Django3 closed 6 years ago

Django3 commented 6 years ago

Hello,

my phone is connected to the wifi (with working Internet) but the auto upload is not working cause it is always writing "Waiting for Wi-Fi".

inkedinkedscreenshot_20180210-214615_li

Best regards, HANNES

Android version: 7.0 (Nougat) Device model: Huawei Mate 10 Lite Nextcloud app version: 3.0.0.

eleith commented 6 years ago

I'm seeing this bug on Android 8 (Oreo) as well

eleith commented 6 years ago

actually, this bug seems to be the culprit for me, not sure about the OP.

https://github.com/nextcloud/android/issues/2093

mario commented 6 years ago

@Django3 do you use VPN too?

user23498723452 commented 6 years ago

I've seen this issue on Android 8.1 Google Pixel. I do not use VPN. Reconnecting to wifi fixes the issue from what I've seen. I do toggle wifi on/off during the day.

DagNygren commented 6 years ago

Seeing this on 3.0.0RC3 as well. VPN or not doesn't matter. The setting on auto upload was WiFi only when some photos were queued. Now these are stuck in the queue seemingly forever. Turning WiFI on/off doesn't work. Turning phone off/on doesn't work. Turning off 4G doesn't work. Chaning the setting for auto upload doesn't work. It just doesn't seem to pick up the changed status..I see that the bug report is closed. Does this mean that the issue is fixed?

AndyScherzinger commented 6 years ago

@DagNygren can you please update to 3.0.1 to check if the issue persists

DagNygren commented 6 years ago

Did that now. No difference in behaviour..

DagNygren commented 6 years ago

The exact chain of events that triggered the problem was: Set up to download only on WiFi Go out and take a photo where there is no WiFi Go back in and activate the WiFi connection and you still see the uploads queued in "Waiting for WiFi" state

DagNygren commented 6 years ago

Ok. Used the source ("Use the source, Luke!") and found that the upload on WiFi setting is not really an "Upload on WiFi" .... What it actually says is "Upload on unmetered networks only" . And as this is something you can turn on and off also on WiFi (in settings for Data Usage) it just happened to be in the On position for our internal network for some reason. Turning that setting off made the autouploads work. So now there are two options:

or:

I will leave it up to the dev:s to make the decision on this, but please do some change to avoid confusion in the future!

tobiasKaminsky commented 6 years ago

Thanks for your help in debugging this! :tada:

I also think that we should change the name to "upload on unmetered wifi only". Allowing the app to upload on any wifi is not a good idea.

@mario?

DagNygren commented 6 years ago

No problem.Glad I could help a bit. Thanks to you guys for creating this and using Open Source - It makes debugging sooo much easier :-)