Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in console when device does not have internet(data) access

when I launch my app normally with 3g/wifi on, I get no error within the console. When I disable data access (aka airplane mode) for testing purposes, I get the following error message when the app launches within the console :

 2011-11-16 19:17:40.440 Juice[8674:707] Reachability Flag Status: -- -------   networkStatusForFlags
 2011-11-16 19:17:41.292 Juice[8674:707] Applications are expected to have a root view    controller at the end of application launch

May it be noted that I get a uialertview that pops up when the app detects no data connection and that I am using a tab bar controller. I have no idea why I am getting these error messages.

Thanks in advance!

like image 648
Teddy13 Avatar asked Dec 22 '22 06:12

Teddy13


1 Answers

Those are not error message per-say, but rather notification messages letting you know that there is no network connection. To disable them you can open up your local copy of Reachability.m and change this:

#define kShouldPrintReachabilityFlags 1

To:

#define kShouldPrintReachabilityFlags 0

The line is just below the #import "Reachability.h" line.

Reachability.m source
Reachability.h source

like image 59
chown Avatar answered May 15 '23 23:05

chown