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
11
votes
4 answers

Using Reachability for Internet *or* local WiFi?

I've searched SO for the answer to this question, and it's not really addressed, at least not to a point where I can make it work. I was originally only checking for Internet reachability, using: self.wwanReach = [Reachability…
randallmeadows
  • 833
  • 1
  • 10
  • 19
11
votes
2 answers

Reachability not working when wi-fi connected but no internet

I am using Apple's reachability code, and am setting up both initial notifications on when network reachability changes and prior to initiating a server connection. The code works when I am on wi-fi and I turn the wi-fi access point off. However,…
R.S
  • 321
  • 3
  • 15
10
votes
1 answer

Updating iPhone Reachability on Network Changes

Edit 23.5.11 I'm now wondering whether I'm over engineering this. When I use an online connection, I handle it properly - either: in the background with a progress or activity indicator showing and if it fails, I display a suitable message OR I…
Chris
  • 1,449
  • 1
  • 18
  • 39
10
votes
7 answers

iOS/iPhone Reachability - How to only check when internet is lost/not reachable using Reachability.m/.h

Currently i am using the class by apple reachability.m/.h and it works, except it notifies me for any change, where as i would like to only notify the user if the network is not reachable. Currently if i have a internet connection and then loose the…
Mausimo
  • 8,018
  • 12
  • 52
  • 70
10
votes
1 answer

How to detect at realtime the increase/decrease of cellular signal power in iOS

My app (it is an app store app) is able to connect via 3G/4G/LTE/Edge etc... however it cannot detect at realtime (via a callback perhaps) that the strength of the signal have been modified. For example: If I am connected with 4G and I am in the…
cateof
  • 6,608
  • 25
  • 79
  • 153
10
votes
1 answer

Include non-modular header inside framework module with Allow non-modular includes set to YES

Background I'm building an API framework in Swift. I want it to include a Reachability class that can be used internally and externally. Status I've copied the source of the Reachability class provided by Tony Million, added the import statement to…
HighFlyingFantasy
  • 3,789
  • 2
  • 26
  • 38
10
votes
1 answer

tony million Reachability says unreachable when connected

I have searched but have not found an issue like mine. I'm sure it's something I have over looked . I am using tony million's reachability block method. it is working good when i have internet then no internet. the alert comes up and works just…
user1184205
  • 863
  • 1
  • 10
  • 23
9
votes
2 answers

Reachability issue on iPhone: networkStatusForFlags

I'm doing a few server calls and getting back some json. The code is pretty simple, it does a call to sign you in, and then does another call to get more info. I keep getting Reachability errors when I try to make the second call. Reachability Flag…
Cory Schulz
  • 319
  • 5
  • 15
9
votes
3 answers

Swift, Check if particular website reachable

How to check reachability of particular website? I am connected to wifi network for internet access, which have blocked some sites. How to check if I have access to those sites or not? I have checked with Reachability class, but I can not check for…
Meghan
  • 1,004
  • 1
  • 15
  • 34
9
votes
4 answers

Check Internet connection availability?

I just need to check the internet connection availability before start communicating with the service in my iphone App. I am using Swift 1.2 and Xcode 6 as my development environment... I've just done some research and found this stackoverflow LINK…
JibW
  • 4,538
  • 17
  • 66
  • 101
9
votes
1 answer

kReachabilityChangedNotification is called multiple times

I'm using the Reachability classes for checking when I got an internet connection en when it goes down. This is my code: IN VIEW DID LOAD: internetReachable = [Reachability reachabilityForInternetConnection]; …
Steaphann
  • 2,797
  • 6
  • 50
  • 109
9
votes
1 answer

Testing Reachability with Network Link Conditioner on 100% packet loss: help me understand what's happening

Help me understand what I am seeing when testing Reachability code using the Network link conditioner. Here is my vanilla Reachability code: Reachability* wifiReach = [[Reachability reachabilityWithHostName: @"www.apple.com"] retain]; NetworkStatus…
Matt Miller
  • 1,421
  • 1
  • 15
  • 24
9
votes
1 answer

Should I listen for reachability updates in each UIViewController?

I see a lot of Reachability examples where people only display a message when reachability status changes. But recently, I saw in Foursquare app that they display a message every time the user try to make an action requiring an Internet…
grandouassou
  • 2,500
  • 3
  • 25
  • 60
9
votes
1 answer

iOS Detecting connection speed or type

Possible Duplicate: Iphone detect 3g or wifi is there a way to get the current network speed or if the device is on EDGE/3G/GPRS? I can use Reachability to distinguish WiFI from WMAN but that's not enough for my application.
John Lane
  • 1,112
  • 1
  • 14
  • 32
8
votes
3 answers

checking reachability against a specific page in a URL

After I have read the answer for this question I have found that using reachabilityWithHostName does not work with a URL such as this one: mySite.com/service.asmx , is there anyway to check reachability against this URL using…
JAHelia
  • 6,934
  • 17
  • 74
  • 134
1 2
3
56 57