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
6
votes
1 answer

Is there any notification which can capture Reachability event on iPhone 6?

iPhone 6/6 Plus have new feature named "Reachability" (Touch twice on TouchID to interact on the larger screen). But I don't find any API in iOS8 SDK documentation.Perhaps I have to wait for the next version of iOS SDK. I think my App can do…
WindEdge
  • 61
  • 1
6
votes
5 answers

iOS: reachabilityWithHostname YES although it should be NO

I tested different frameworks, e.g. https://github.com/tonymillion/Reachability https://github.com/VerticodeLabs/VCLReachability https://github.com/kstenerud/KSReachability and I would like to know if a host is reachable. On my iPhone, I set my…
swalkner
  • 16,679
  • 31
  • 123
  • 210
6
votes
3 answers

AFNetworking Reachability Return FALSE value?

I have internet connection and can browsing with browser. Here is my codes to check Reachability with AFNetworking. - (BOOL)connected { return [AFNetworkReachabilityManager sharedManager].reachable; } And In ViewDidLoad BOOL isOnline = [self…
Fire Fist
  • 7,032
  • 12
  • 63
  • 109
6
votes
1 answer

Monitoring Reachability with AFNetworking only on a presented controller

I am using AFNetworking 2.0 to monitor Reachability. In the viewDidLoad of my main VC I have the following: // Start monitoring the internet connection [[AFNetworkReachabilityManager sharedManager] startMonitoring]; [[AFNetworkReachabilityManager…
StuartM
  • 6,743
  • 18
  • 84
  • 160
6
votes
2 answers

Notification when Internet became available on iOS

Is it possible to receive a notification or something inside my app when the internet BECOMES available. I'm aware of reachability and all kinds of stuff. But what i want is to start some pending NSUrlConnections when internet becomes available on…
user2387149
  • 1,219
  • 16
  • 28
6
votes
2 answers

How to define a reachability timeout on ios

I use the Reachability class to know if I have an internet connection available. The problem is when wifi is available but not internet, the - (NetworkStatus) currentReachabilityStatus method take too much time. my code: Reachability* reachability =…
Anthony
  • 2,801
  • 3
  • 30
  • 49
5
votes
2 answers

App crashing when using Reachability Classes to check for internet connection

I'm using this code to check for an internet connection but I'm getting a crash saying +[Reachability reachabilityForInternetConnection]: unrecognized selector sent to class 0xcbe0c8 I've imported Reachability .h/.m and the systemconfig framework. …
Jon
  • 4,732
  • 6
  • 44
  • 67
5
votes
2 answers

Some cassandra nodes in cluster are unreachable even all the nodes are up and running

I have cassandra cluster of 6 nodes on ec2 , Many times i have observed that all the nodes in the cluster are up and running but when i do the describe cluster from client it shows some nodes as unreachable. I can login to individual machines can…
samarth
  • 3,866
  • 7
  • 45
  • 60
5
votes
2 answers

Checking if there is an active internet connection iPhone situation

I would like to check to see if the user has an active internet connection. This is how I have implemented it. It seems to work fine but the problem is it ALWAYS shows that there is no connection on my iPhone simulator (uialert comes up) even when…
Teddy13
  • 3,824
  • 11
  • 42
  • 69
5
votes
4 answers

Notification is not being called in Reachability

I have used Andrew's modified Reachability class. -(void)viewDidLoad [[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification object:nil]; [[NSNotificationCenter defaultCenter]addObserver:self…
Harsh
  • 666
  • 1
  • 10
  • 21
5
votes
2 answers

Getting online/offline reachability notifications

Let me first stress the fact that I'm talking about the Mac OS X SDK, not iPhone. In order to determine the "connectivity" and get the flags, I do something similar to: #import const char *hostName =…
Josh
  • 145
  • 1
  • 2
  • 5
5
votes
1 answer

Reachability reachabilityWithAddress does not work

I am trying to determine if the iphone can connect to my IP address using following code struct sockaddr_in server_address; server_address.sin_len = sizeof(server_address); server_address.sin_family = AF_INET; server_address.sin_port =…
user542584
  • 2,651
  • 2
  • 25
  • 29
5
votes
4 answers

SCNetworkReachabilityGetFlags returns 0 even when wireless available

I have an app that uses Apples reachability code. When I tab out of the app, turn on airplane mode, go back into the app, I correctly get a message that says no connection is available. If I go back out turn OFF airplane mode and go back into the…
jjxtra
  • 20,415
  • 16
  • 100
  • 140
5
votes
4 answers

Reachability network change event not firing

My iphone app is pretty simple with one view that handles everything, in viewDidLoad I check to see if we have an internet connection and if we do we load from the web and if not we load from a local resource. And this works fine. //in viewDidOnload…
ashansky
  • 730
  • 2
  • 14
  • 34
5
votes
1 answer

wifi is connected and internet is not available iOS

My question is same as this question, but don't get a proper answer. If I am connected to wifi, but internet is not available/gone it should be notify. Alslo tested using Apple Reachability demo but still its not working. Steps to reproduce: 1)…
Dinesh Kachhot
  • 385
  • 5
  • 15