Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Lorn Potter
Hi Alex, Having tested this, it does seem to be a bug in that when connecting to wlan, QNAM’s networkAccessibility sometimes will go to NotAccessible, but then go to Accessible when wlan connects. or sometimes it won’t even go to NotAccessible then Accessible when wlan is connected. You

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Lorn Potter
> On 11 Nov 2015, at 8:09 pm, Lorn Potter wrote: > > Hi Alex, > > Having tested this, it does seem to be a bug in that when connecting to wlan I should have specified here when already connected to mobile data and then connecting to wlan without first disconnecting

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Alexander Ladygin
Hei Lorn I probably didn't make myself clear =( 1) wifi is turned on 2) app is launched, i can download files with QNAM 3) app is still launched, i turn off the wifi (mobile network activated) 4) i can no longer download any files. No network errors, but QNAM's reply returns empty files 5) turn

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Alexander Ladygin
I've added some debugging. Strangely i'm not actually getting any errors, but when i try to download a file (that's the sole purpose of QNAM in my app), i'm getting an empty one. Any thoughts? PS if close my app and open it again it downloads same file with same url without any problems

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Lorn Potter
> On 12 Nov 2015, at 9:50 am, Aaron McCarthy wrote: > > Hi, > > On Wed, 11 Nov 2015 16:20:11 Alexander Ladygin wrote: >> I probably didn't make myself clear =( >> 1) wifi is turned on >> 2) app is launched, i can download files with QNAM >> 3) app is still launched, i

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Aaron McCarthy
Hi, On Wed, 11 Nov 2015 16:20:11 Alexander Ladygin wrote: > I probably didn't make myself clear =( > 1) wifi is turned on > 2) app is launched, i can download files with QNAM > 3) app is still launched, i turn off the wifi (mobile network activated) > 4) i can no longer download any files. No

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-10 Thread Alexander Ladygin
in addition: even if i create new object instance for QNetworkAccessManager, it still won't connect to internet, as if it still uses WiFi "globally" even though wifi is off On Tue, Nov 10, 2015 at 11:07 AM, Alexander Ladygin wrote: > but how exactly can i make disconnect? All

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-10 Thread Aaron McCarthy
Hi, On Tue, 10 Nov 2015 11:07:51 Alexander Ladygin wrote: > but how exactly can i make disconnect? All the network requests i send with > QNetworkAccessManager after switching to mobile are returned with errors =( What errors are being returned? Are you explicitly setting a network

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-10 Thread Alexander Ladygin
lexander Ladygin" <fake...@gmail.com> > Кому: aaron.mccar...@jolla.com; "Sailfish OS Developers" < > devel@lists.sailfishos.org> > Отправлено: 10.11.2015 14:06:12 > Тема: Re: [SailfishDevel] QNetworkAccessManager is losing connection upon > switching between wifi a

[SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-09 Thread Alexander Ladygin
Hey! I've got an issue: QNetworkAccessManager is losing connection upon switching between wifi and mobile:( What exactly should i do/update to make it work properly? Maybe need to change network configuration? Why it is not handled by platform? Thanks. Alex