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
3
votes
0 answers

Apple's Reachability class: Zero Address vs Link-local

Using Apple's Reachability class, you will notice that the test address for the LocalWifi test is 169.254.0.0 (so-called link-local address) and the test address for WWAN is address zero (0.0.0.0 I presume). Reachability supports checks for…
Electro-Bunny
  • 1,380
  • 2
  • 12
  • 33
3
votes
1 answer

Notify user reachability (Ashley Mills' Reachability)

I made an app, I want to add function that notify user when app's internet reachability is changed. I use Ashley Mills' Reachability.swift file. now I understand how it works, So I put code that when internet reachability is changed, it will print…
Janghyup Lee
  • 167
  • 3
  • 17
3
votes
0 answers

How to test EDGE or GPRS or any other slow/bad network

In my iOS app, I support to work online as well as offline. For this I have used Apple's Reachability code. Now I want to show user is offline if the cellular mobile network is EDGE or GPRS or bad/slow network. I have used the below code( Found…
Kirti Nikam
  • 2,166
  • 2
  • 22
  • 43
3
votes
1 answer

popup alert when Reachability connection is lost during using the app (IOS xcode swift)

I am a beginner of IOS app development and would like to "popup alert when Reachability connection is lost during using the app (IOS xcode swift)", but I only get popup alert when starting the my app. There is not alert popup during using my app…
Eric Chong
  • 495
  • 1
  • 7
  • 21
3
votes
2 answers

How to determine if an iOS device has a cellular radio?

Is it possible, without including an exhaustive list of models in the code, to determine if an iOS device includes a cellular radio? I am working on adding a check for host reachability to an app, and I'd like the failure message to be appropriate…
Steve Madsen
  • 13,465
  • 4
  • 49
  • 67
3
votes
3 answers

Does iOS reachability detect network changes when app is brought to foreground

I've developed an iOS 7 application. In my application I need to detect if a change in the network connection has occurred (3g \ wifi \ etc). If so, I perform some reconnect with my services. I couldn't figure out if reachability can detect changes…
vondip
  • 13,809
  • 27
  • 100
  • 156
3
votes
0 answers

SCNetworkReachability connects on WIFI but not connecting on Cellular

I am trying to connect to 3g network but scnetwork reachability is not working fine... It works fine on wifi but error on 3g or edge Here is the code... SCNetworkReachabilityContext context = { 0, &g_con, NULL, NULL, NULL }; SCNetworkReachability…
Mradul Kumar
  • 347
  • 3
  • 17
3
votes
1 answer

reachabilityWithHostName is not working

I want to confirm that an URL is accessible/reachable before calling it. I knew reachabilityWithHostName method can help me to do this task. I used the following code to know about URL reachability. But it does not works. Reachability *connection =…
Confused
  • 3,846
  • 7
  • 45
  • 72
3
votes
0 answers

Bad access in ReachabilityCallback

I am getting bad access in following code, what can be the reason? static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void *info) { #pragma unused (target, flags) NSCAssert(info != NULL, @"info was…
user2068378
  • 114
  • 7
3
votes
2 answers

Parse.com connection lost while reachability status == 2

I've been getting parse.com errors all day long that there is no network connection, while my reachability status logs 2. This is the parse error: _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection…
bdv
  • 1,154
  • 2
  • 19
  • 42
3
votes
2 answers

SCNetworkReachabilitySetCallback failing in Swift

I'm attempting to use the following code to set a callback for an SCNetworkReachability // Create callback let callback:(SCNetworkReachability!, SCNetworkReachabilityFlags, UnsafeMutablePointer) -> () = { (target: SCNetworkReachability!,…
Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
3
votes
1 answer

Why does the Reachability class return unexpected results for iOS8?

When my application initially starts up, I am calling [Reachability reachabilityForInternetConnection]. I am essentially calling this right after -application:didFinishLaunchingWithOptions: in the AppDelegate. In iOS8, this is returning a valid…
kwatanabe
  • 226
  • 2
  • 6
3
votes
0 answers

How do I test notifications of Reachability changes in the iOS simulator?

I know that there are ways to control the iOS simulator's connection (which actually is just the underlying host Mac OS X system connection) to the internet. I specifically want to test receiving and processing of reachability change notifications…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
3
votes
3 answers

Need some help with Reachability (2.0.3ddg)

When my app launches, I check for reachability because I need an immediate internet connection. My problem, though, is that it appears there's no immediate confirmation for the NetworkStatus, which means right after the Reachability is setup, I…
runmad
  • 14,846
  • 9
  • 99
  • 140
3
votes
1 answer

Android: ping without /system/bin/ping

On some devices, the binary /system/bin/ping seems to be removed. When I connect the device by USB and type adb shell ping it says: /system/bin/sh: ping: not found Is it possible to still send ping requests from such devices? What are other…
A.G.
  • 2,037
  • 4
  • 29
  • 40