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

ekke ekke at ekkes-corner.org
Sat Sep 26 17:53:52 CEST 2020


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 
patients and at each patient has to confirm services done and to send 
vital values and so on...

while on tour and visiting the patients the device sometimes is online, 
sometimes offline

all service items done are written to a queue. queue watches online 
state and always when the device is online items waiting in the queue 
are sent to server

in the evening when all work is done user can only log out if all work 
is sent to server - if not online he/she gets an info "you're not online 
- work items cannot be sent" ...

assuming that the device is online won't work in such kind of use-cases, 
pulling also is no good idea

(have some more mobile apps where it's also important always to know the 
online state)

ekke



More information about the Interest mailing list