Hi.
The AppFramework has a network object that can return network configurations available, an example of a json object below.
I've found that "bearerType" on iOS always seems to be 0 (unknown).
Windows seems to report Wifi connections as 2 (WLAN), but all others as 0.
Android seems to report all the different types correctly.
I had thought to use this to determine whether the app was on a wifi connection or ethernet etc, to determine whether/when to initiate a sync.
Is this a problem with the AppFramework not returning correct values? Or is it an underlying problem with the Qt framework?
Or, is there a different and more reliable way to determine the current network connection type?
{
"bearerType": 0,
"bearerTypeFamily": 0,
"bearerTypeName": "Unknown",
"children": [],
"identifier": "3278187404",
"isRoamingAvailable": false,
"isValid": true,
"name": "Wi-Fi",
"purpose": 0,
"state": 2,
"type": 0
}
Cheers,
-Paul
Solved! Go to Solution.
Hi Paul,
This is a limitation in Qt Framework. Based on the comments in below Qt bug report, I understand that the back end implementation for iOS is not available.
> Or, is there a different and more reliable way to determine the current network connection type?
Currently there is no API in Qt or AppFramework to determine the current network connection type. We had previously raised this as an enhancement request to Qt Company and the progress of it can be tracked using the below bug report.
Thanks
Shobana
Hi Paul,
This is a limitation in Qt Framework. Based on the comments in below Qt bug report, I understand that the back end implementation for iOS is not available.
> Or, is there a different and more reliable way to determine the current network connection type?
Currently there is no API in Qt or AppFramework to determine the current network connection type. We had previously raised this as an enhancement request to Qt Company and the progress of it can be tracked using the below bug report.
Thanks
Shobana
Thanks Shobana.