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

iOS Xcode - Reachability (TonyMillion) - Show alert if iOS app does not have Network Connectivity

I've been trying to implement this (https://github.com/tonymillion/Reachability/) into my iOS iPhone app for 4 hours. I've seen other questions on SO about it, but none explicitly show how to implement the code. Can someone please help? All I want…
adamdehaven
  • 5,890
  • 10
  • 61
  • 84
0
votes
3 answers

status of reachabilityForLocalWiFi is ReachableViaWWAN while on WIFI?

I need to detect if the device is connected to WIFI: reach = [Reachability reachabilityForLocalWiFi]; status = [reach currentReachabilityStatus]; but the status is WWAN when I connect to WIFI on iPad, and there is no SIM inserted, I am about to…
hzxu
  • 5,753
  • 11
  • 60
  • 95
0
votes
1 answer

Observer for reachability in AppDelegate cannot be triggered

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions [[NSNotificationCenter defaultCenter] addObserver:self …
Shing
  • 1,255
  • 1
  • 10
  • 18
0
votes
1 answer

Does/can Reachability constantly update internet connectivity status?

There are at least 3 view-controllers in my app where connectivity is necessary. Do I have to start a new Reachability test upon entering each one of those view-controllers (in their viewDidLoad for example), or can I just do it upon launch - like…
Sirab33
  • 1,247
  • 3
  • 12
  • 27
0
votes
1 answer

Objective C - Switching from WiFi to 3G and vice versa

I'm developing an iPhone app that uses the network. The iPhone communicate with my server via HTTP request and should work on WiFi and 3G. I currently use NSURLConnection initWithRequest to send async requests to my server and get responses (but I…
Eyal
  • 10,777
  • 18
  • 78
  • 130
0
votes
1 answer

UIWebView Error Delegate Method vs Reachability

I'm in the process of submitting my app to the App Store, but I read that I must notify the user if the internet connection is down when my app needs it. The Apple page mentioned Reachability as well. Currently, though, I'm using the UIWebView…
gtmtg
  • 3,010
  • 2
  • 22
  • 35
0
votes
2 answers

How to resolve this memory leak?

I obtained the following code from the servin.com website. Although the code works, Instruments reports a memory leak. I don't see any alloc, retain, copy in the code so I cannot figure out how to resolve this memory leak. The code & results from…
Dev1345
  • 61
  • 1
  • 11
0
votes
2 answers

When exactly *must* an app include the Reachability class to test for network reachability?

According to Cocoa with Love Reachability is needed when an app requires WiFi (rather than cellular network), e.g. if app loads heavy videos and is not meant to be used over 3G. My app uses internet no matter if WiFi or 3G and only downloads small…
Proud Member
  • 40,078
  • 47
  • 146
  • 231
0
votes
1 answer

Alert when device has no connection

If the user is not connected to the Internet, I would like to display an alert. How would I do this?
Chandler De Angelis
  • 2,646
  • 6
  • 32
  • 45
0
votes
2 answers

iOS app upload data to server as soon as network is available

I have an app that tracks wildlife where the user enters data based on their observations (eg. user enters they see 3 moose). The data is then uploaded to a server. However, because this app will be used out in the field where there is often no…
Daniel
  • 458
  • 7
  • 21
0
votes
1 answer

Reachability error checking for network type on ios

I am trying to detect network connectivity using apples sample reachability code as well as this code below. Reachability *reachability = [Reachability reachabilityForInternetConnection]; [reachability startNotifier]; NetworkStatus status =…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
0
votes
1 answer

probleme in Reachability

I test this code on my iphone on airplane mode when I clik on the button displays a msg, but on the state where I connect to the internet, to play the button does not function and my application exit This is the code: -(void)playMovie { NSURL…
0
votes
3 answers

RestKit Reachability null

I have the following code in my AppDelegate.m - the result of the NSLog is always (null) and thus the condition for no reachability is never fired. I would like to know why this is happening/what I am doing incorrectly. -…
tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126
0
votes
1 answer

AFNetworking + current reachable interface

I have a UITableView showing a list downloads located on my own server. Each row has its own download button. Since some of them have a size greater than 50Mb I would like to disable their download button to save user money and experience when they…
microspino
  • 7,693
  • 3
  • 48
  • 49
0
votes
1 answer

Reachability notification. Where's the right place in my app?

I develop an app and some areas are required to be connected to internet generally. Not important how: 3G,Wifi. So, my question is do I have to use reachability on the main view or I can implement it only in the specific areas where the internet…
NCFUSN
  • 1,624
  • 4
  • 28
  • 44