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

Any ideas how to install 'ReachabilitySwift' for swift 3?

I have tried to install : pod 'ReachabilitySwift', '~> 3' into my Podfile, but I get this error: [!] Unable to satisfy the following requirements: ReachabilitySwift (~> 3) required by Podfile None of your spec sources contain a spec satisfying…
Dakata
  • 1,227
  • 2
  • 14
  • 33
4
votes
2 answers

Reachability returns False for Cellular network in iOS - Swift

I have this code for checking internet connection , it was working very well until I update to Xcode 8 and swift 3 . Now it returns false for Cellular network and true for WiFi network I don't know why. This is the code : open class Reachability {…
Zizoo
  • 1,694
  • 5
  • 20
  • 42
4
votes
3 answers

What is the issue with ReachabilitySwift?

In my viewDidLoad() function I call this method: //MARK: Reachability func startReachability(){ //declare this property where it won't go out of scope relative to your listener do{ let reachability = try…
Marina
  • 1,177
  • 4
  • 14
  • 27
4
votes
3 answers

Send data to server whenever internet connection is available iOS

I am developing an iOS app, What i want to do is, whenever user turned on/off his internet from setting app, i want to set some notification to device. In short, i want to send some data (stored in NSUserDefaults) to server whenever internet…
Krunal
  • 6,440
  • 21
  • 91
  • 155
4
votes
1 answer

iOS reachability class for ipv6 support

I am using reachability class in my application to monitor the network state.The following are the code to check reachability of the internet from the Apple reachability sample. It works well with IPv4 networks. But it fails on IPv6 wifi…
4
votes
2 answers

iOS Network Connection Failure Policy suggestions

I'm looking for suggestions to the best way to handle network connection issues for an iPhone app (iOS9/Swift2/Xcode7), to give the best user experience since we know that mobile data networks are unreliable. I have my coding options in place but…
FireDragon
  • 9,325
  • 4
  • 27
  • 34
4
votes
1 answer

Another "wait_fences: failed to receive reply" Question (UIAlertView)

There are a number of questions regarding the "wait_fences: failed to receive reply" on this forum already, but none of the proposed solutions work for me (although they did help me to mitigate it). When my app starts up, I do a reachability check,…
JoBu1324
  • 7,751
  • 6
  • 44
  • 61
4
votes
2 answers

iOS check if cellular technology available even if the device is on WiFi

Need some help here. I need to detect if an iOS device have (on a certain moment) cellular capabilities (No matter which one). I tried to use reachability class, but the problem start when the user is connected to WiFi, because if so - reachability…
Idan Magled
  • 2,186
  • 1
  • 23
  • 33
4
votes
1 answer

Reachability issue with iOS8

I am facing issue in iOS8.0. Before a UPNP search I am checking for wifi connection using Apple's Reachability code. All things runs fine on iOS7 and earlier versions but for iOS8.0 beta5 (iPad mini, iPad air) it is failing and giving wrong…
Dinesh
  • 929
  • 7
  • 25
4
votes
1 answer

What does zero sockaddr_in mean in SCNetworkReachabilityCreateWithAddress?

tonymillion 's Reachability has +(Reachability *)reachabilityForInternetConnection { struct sockaddr_in zeroAddress; bzero(&zeroAddress, sizeof(zeroAddress)); zeroAddress.sin_len = sizeof(zeroAddress); zeroAddress.sin_family =…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
4
votes
2 answers

How to check if connection has been switched to 3G while app is in background in iOS?

Is it Possible for an app to know whether the connection has been switched from Wi-Fi to 3G While app is in background?The requirement is that download should happen on Wi-Fi Connection.The Check is done initialy but i need to confirm that…
4
votes
3 answers

IOS Reachability notification in Background

I want to do some tasks as soon as user comes online even he is in background. I am using Reachability class for checking internet. But this class is not notifying me when i am at background. I know people asked this question earlier but didn't got…
Sachin
  • 333
  • 1
  • 4
  • 19
4
votes
0 answers

AFNetworking 2.0 Reachability incorrectly reports not reachable - AFNetworkReachabilityStatusNotReachable

I'm using the reachability feature of AFNetworking 2.0 as outlined in their sample code - I have a test server in the local LAN that my iOS App communicates with during testing. When I run the app in the simulator with WLAN on, AFNetworking…
patschiboy
  • 1,091
  • 8
  • 21
4
votes
1 answer

iOS: Reachability - startNotifier fails after returning to app

I have Reachability working exactly as suggested as in this thread. I am using the open source Reachability. However I am not using blocks but notifications, hence the process is pretty similar to the Apple's Reachability code. The first time I…
Houman
  • 64,245
  • 87
  • 278
  • 460
4
votes
1 answer

AFNetworking 2.0 Reachability not working

I'm having some trouble making AFNetworking Reachability module to work. I have setup my AFHTTPRequestOperationManager with a ReachabilityStatusChangeBlock but it's never being called. self.manager = [[AFHTTPRequestOperationManager alloc]…
bilby91
  • 904
  • 1
  • 8
  • 20