iOS Question App closed when wifi is off

f0raster0

Well-Known Member
Licensed User
Longtime User
Hi,
I have an App that if I turn off the internet connection the App is closed almost immediately.
In iphone4 OK, but in iphone5c (IOS 8.5 )happen this error.


I don't have Bluetooth to run the App in debug mode using BL. then I can't do the test in debug mode using wifi.

thanks
 
Last edited:

f0raster0

Well-Known Member
Licensed User
Longtime User
Why aren't you using iHttpUtils2?

Do you have a local Mac?

I have a PC(win7) using hosted builder
I'm using b4i v2.31 at the moment

How can I debug this: the App close when wifi is off?
 
Last edited:
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
It doesn't crash on iPhone 5S. I tested it in airplane mode and with wireless turned off.

Thanks Erel, in airplane mode it works fine.
I'm using an iphone 5c

It only crash when wifi is off (not airplane mode)
it is like that will crash if the iPhone doesn't have data/internet connection.
then I think that the code is wrong in somewhere..

When not internet connection is available it has to work as you saw in airplane mode.

I have bought an Bluetooth for debug without wifi, awaiting for it arrive.
 
Last edited:
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
The App isn't crashing if Case2 and Case4 are commented :)
 
Last edited:
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
Hi Erel,

I got the both Msbox when wifi is off
 
Last edited:
Upvote 0
Top