This is a well known bug that has bounced around varuous statuses in various other issue numbers and is still not fixed it seems.
 
https://bugreports.qt.io/browse/QTBUG-49751
 
Sent: Tuesday, August 09, 2016 at 5:32 AM
From: ekke <e...@ekkes-corner.org>
To: "interest@qt-project.org" <interest@qt-project.org>
Subject: [Interest] QNetworkAccessManager networkAccessible - Android vs iOS

Hi,

just noticed a difference between Android and iOS

Before doing a request I'm checking the Network

if(mNetworkAccessManager->networkAccessible() != QNetworkAccessManager::Accessible) {

 

on Android all works well.

Switching off wifi and mobile data --> Not Accessible

Switching on again --> Accessible

on iOS it's different:

Switching off wifi and mobile data --> Not Accessible

Switching on again --> state not changed back to accessible

--

QNetworkAccessManager is initialized at first use and then re-used.
If I always create  a new QNetworkAccessManager before executing the request, all is detected well also on iOS

Can I 'reset' the accessibility or should I always create a new QNetworkAccessManager and report a bugreport ?

thx

ekke _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to