Questions tagged [reachability]

Reachability is an iOS sample application which demonstrates how to use the SystemConfiguration framework to monitor the network state of an iPhone or iPod touch. In particular, it demonstrates how to know when IP can be routed and when traffic will be routed through a Wireless Wide Area Network (WWAN) interface such as EDGE or 3G.

Reachability is an iOS sample application which demonstrates how to use the SystemConfiguration framework to monitor the network state of an iPhone or iPod touch. In particular, it demonstrates how to know when IP can be routed and when traffic will be routed through a Wireless Wide Area Network (WWAN) interface such as EDGE or 3G.

856 questions
5
votes
2 answers

CoreTelephony crash for reason: Received a notification with no notification name

I receive about 5,000 reported issue for reason "Received a notification with no notification name" everyday. Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException' reason: 'Received a…
Carina
  • 2,260
  • 2
  • 20
  • 45
5
votes
1 answer

Swift: How can I have a listener that reports when connection is lost and when it comes back?

I would like to call a method when my iOS app starts, but I just want to call this method when there is connection. I have found that in Objective-C you can use Reachable, but it turns out that this method is not part of Swift. I have found a pod…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
5
votes
1 answer

Reachability reachable and unreachableBlock are called multiple times?

Im using Reachability to check the network status for my app, everithing works OK except that in iOS 9.0.1 or higher the reachableBlock and unreachableBlock are called twice, which takes me into a big trouble. This is only happening in iOS 9.0.1 and…
Karlo A. López
  • 2,548
  • 3
  • 29
  • 56
5
votes
1 answer

Checking if Cellular Data has been turned off

So I've done a lot of research and I haven't quite found the answer I have been looking for... I want to make it so that, if cellular data is turned off for my app in particular, the app doesn't work or at least make it so a few buttons are hidden.…
LodgeApps
  • 344
  • 1
  • 2
  • 21
5
votes
0 answers

Reachability change cause crash

Apple developer sample of Reachability cause Memory Leak when turning off wifi during play offline music (using this code) in my app and it got stuck line I mentioned bottom, It may cause by that Player code because log says [__NSCFString…
Developia
  • 3,928
  • 1
  • 28
  • 43
5
votes
2 answers

Network link conditioner on 100% packet loss - why I am getting internet reachability status wrong?

I am checking the status of internet reachability using class "Reachability". But while testing, if I am setting 100% packet loss in developer settings, still I get reachability status as "ReachableViaWiFi". I am confused what's happening. Shouldn't…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
5
votes
1 answer

Reachability on iOS 8 delayed?

The Reachability classes from Apple Reachability sample code seems to fire quite delayed when the user places the device into airplane mode. I am seeing roughly a 5 second gap between the user going to airplane mode and the actual notification. Is…
cynistersix
  • 1,215
  • 1
  • 16
  • 30
5
votes
1 answer

AFNetworking reachability is always unknown

I start monitoring like this in my AppDelegate: [[AFNetworkReachabilityManager sharedManager] startMonitoring]; On my root controller I then need to check if reachability is available and I perform this action to decide how to draw my…
Andrea Campolonghi
  • 546
  • 2
  • 5
  • 15
5
votes
5 answers

Reachability responding with wrong status code in iOS 7 iphone 5

I am facing weird problem on iPhone 5 with iOS 7, i have tested same code with other devices like iPad1, 2, 3 and iPhone 4, 4s etc. with different iOS combination including iOS 7. Problem : When i turn on airplane mode i do get reachability…
Aditya Deshmane
  • 4,676
  • 2
  • 29
  • 35
5
votes
1 answer

Constantly Listen for Internet Reachability?

I understand how I can test internet reachability in my app, but what i need to do is constantly listen for reachability, app wide. So if any point anywhere in the app the connection status changes, I can react. How would I achieve something like…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
5
votes
3 answers

Reachability Classes crashing program - not sure why

I have an 'internet aware' base class for objects which require networking in my app. All the objects which need to be internet aware inherit from it. As you can imagine I allocate and deallocate a lot of these objects. The internet aware base…
BYZZav
  • 1,418
  • 1
  • 19
  • 35
5
votes
5 answers

Can I programmatically flip Info.plist values while my application is running?

I am interested in using the SBUsesNetwork and UIRequiresPersistentWiFi keys in my application; however, I would like to enable them only when using a certain set of view controllers. Is there a way to programmatically flip those key values while…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
5
votes
4 answers

Using 'stringWithString:' with a literal is redundant

i used this code in reachability class that is in ios6 switch (status) { case kNotReachable: statusString = [NSString stringWithString: @"Not Reachable"]; break; case kReachableViaWWAN: …
5
votes
3 answers

Where do you put your call to Reachability?

I'm trying to implement Reachability in my app. I have it in applicationDidFinishLaunching. If my connection is really bad and I launch the app, Reachability takes forever and often crashes the app with an The application failed to launch in time…
bmueller
  • 2,681
  • 1
  • 27
  • 45
5
votes
3 answers

Are there more sophisticated alternatives to Apples Reachability class?

Apple has created that famous Reachability class but looking at the code I don't trust it much. The formatting and header is messy. Also it provides no help for showing that "You have no internet!" alert. I just want to do: At some point download a…
Proud Member
  • 40,078
  • 47
  • 146
  • 231