Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-28 Thread ekke
Am 28.09.20 um 17:56 schrieb Thiago Macieira: On Monday, 28 September 2020 00:49:49 PDT ekke wrote: I wait 2 minutes and try again if server still not reachable, repeat this max 5 times to avoid endless-trying-to-connect if still no success, I pause the Queue User gets message and has to rest

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-28 Thread Thiago Macieira
On Saturday, 26 September 2020 09:46:39 PDT Marian Beermann wrote: > An interface like this is inherently racy. QNCM (obsolete) may tell you > you are online, you connect to the server, send your stuff, and while > that happens the device goes offline and you get an error. You probably > handle thi

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-28 Thread Marian Beermann
An interface like this is inherently racy. QNCM (obsolete) may tell you you are online, you connect to the server, send your stuff, and while that happens the device goes offline and you get an error. You probably handle this case already. Stuff like this is "informational" and you can't assume st

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-28 Thread Thiago Macieira
On Monday, 28 September 2020 00:49:49 PDT ekke wrote: > I wait 2 minutes and try again > > if server still not reachable, repeat this max 5 times to avoid > endless-trying-to-connect > > if still no success, I pause the Queue > > User gets message and has to restart the Queue manually > > messa

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-28 Thread ekke
Am 27.09.20 um 21:07 schrieb Thiago Macieira: On Saturday, 26 September 2020 10:29:28 PDT ekke wrote: If I'm following your suggestion trying to connect - what should I do if I cannot connect ? The same thing that you'd do if your watch classes told you were not online. And the same thing you'r

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-27 Thread Thiago Macieira
On Saturday, 26 September 2020 10:29:28 PDT ekke wrote: > If I'm following your suggestion trying to connect - what should I do if > I cannot connect ? The same thing that you'd do if your watch classes told you were not online. And the same thing you're doing right now if you think you're online

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-26 Thread ekke
Am 26.09.20 um 18:46 schrieb Marian Beermann: An interface like this is inherently racy. QNCM (obsolete) may tell you you are online, you connect to the server, send your stuff, and while that happens the device goes offline and you get an error. You probably handle this case already. yes - I'm

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-26 Thread ekke
Am 26.09.20 um 18:15 schrieb Thiago Macieira: On Saturday, 26 September 2020 08:53:52 PDT ekke wrote: Am 26.09.20 um 17:39 schrieb Thiago Macieira: On Friday, 25 September 2020 23:58:26 PDT Alexander Dyagilev wrote: Hello, Tested with Qt 5.12.9. Any workarounds? Suggestion: stop trying to ch

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-26 Thread Thiago Macieira
On Saturday, 26 September 2020 08:53:52 PDT ekke wrote: > Am 26.09.20 um 17:39 schrieb Thiago Macieira: > > On Friday, 25 September 2020 23:58:26 PDT Alexander Dyagilev wrote: > >> Hello, > >> > >> Tested with Qt 5.12.9. Any workarounds? > > > > Suggestion: stop trying to check and assume that yo

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-26 Thread ekke
Am 26.09.20 um 17:39 schrieb Thiago Macieira: On Friday, 25 September 2020 23:58:26 PDT Alexander Dyagilev wrote: Hello, Tested with Qt 5.12.9. Any workarounds? Suggestion: stop trying to check and assume that you are online. imagine a mobile app for outpatient services, where a nurse visits

Re: [Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-26 Thread Thiago Macieira
On Friday, 25 September 2020 23:58:26 PDT Alexander Dyagilev wrote: > Hello, > > Tested with Qt 5.12.9. Any workarounds? Suggestion: stop trying to check and assume that you are online. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel DPG Cloud Engineering ___

[Interest] QNetworkConfigurationManager::isOnline always returns false on Android 11

2020-09-26 Thread Alexander Dyagilev
Hello, Tested with Qt 5.12.9. Any workarounds? I've created the bug report here: https://bugreports.qt.io/browse/QTBUG-86981 ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest