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
20
votes
6 answers

Could not successfully update network info during initialization

I get the above mentioned issue all the time when I first launch the app in the day. When I first launch the app, I make server calls to get some data and then play animation video. Server calls is in a separate thread than main UI Thread. Is it…
lifemoveson
  • 1,661
  • 8
  • 28
  • 55
20
votes
2 answers

Detect the reachability in background

I have been testing different way to implement the possibility to know if the device get internet back when the app it is in background so the first code I test was the Apple reachability sample code…
Ben
  • 1,031
  • 3
  • 17
  • 31
19
votes
3 answers

AFNetworking checking Availability

I've implemented AFNetworking without subclassing AFHTTPClient, in part using the following code in my DownloadQueueManager: -(void)downloadPodcastAt:(NSString *)url toPath:(NSString *)path { NSURLRequest *request = [NSURLRequest…
AMayes
  • 1,767
  • 1
  • 16
  • 29
18
votes
2 answers

Reachability and IPv6

One of my project uses the Apple's Reachability class in order to be monitor the network state and be notified in case of changes. After reading this article about supporting IPv6 I was wondering if were to be made to this class to make it work with…
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
17
votes
4 answers

Using Apple's Reachability to check remote server reachability in Swift

I'm developing an iOS application written in Swift that communicates with a HTTP server on the local network, and I'm using Apple's Reachability class to determine wether the remote machine running the HTTP server is online or not. Here's the…
pseudorandomuser
  • 315
  • 1
  • 2
  • 10
17
votes
4 answers

Setting up reachability with AFNetworking 2.0

I am trying to setup Reachability using the new 2.0 AFNetworking. In my AppDelegate I initialise the sharedManager. // Instantiate Shared Manager [AFNetworkReachabilityManager sharedManager]; Then in the relevant VC method I check to see if…
StuartM
  • 6,743
  • 18
  • 84
  • 160
16
votes
10 answers

How to check internet connection on iOS device?

I'm wondering how I can check if the user is connect to internet through WIFI or cellular data 3G or 4G. Also I don't want to check if a website is reachable or not, the thing that I want to check if there is internet on the device or not. I tried…
SniperCoder
  • 823
  • 2
  • 11
  • 23
16
votes
3 answers

How to detect Network Signal Strength in iOS Reachability

I am creating a new Traveling Application in iOS, this application is highly dependent on Maps and will include two Maps. My first Map will work when the user has a strong Network Signal (Apple Maps). My second Map will be used when their isn't…
iProgrammed
  • 980
  • 2
  • 10
  • 29
16
votes
6 answers

Reachability not working as expected

Downloaded Reachability from Apple, using this method to check for an active connection: -(BOOL)isReachable{ Reachability *r = [Reachability reachabilityWithHostName:@"http://www.google.com"]; if(NotReachable == [r…
Adam Waite
  • 19,175
  • 22
  • 126
  • 148
15
votes
7 answers

How to use reachability class to detect valid internet connection?

I'm new to iOS development and am struggling to get the reachability.h class to work. Here is my code for view controller: - (void)viewWillAppear:(BOOL)animated { [[NSNotificationCenter defaultCenter] addObserver:self …
Camsoft
  • 11,718
  • 19
  • 83
  • 120
14
votes
5 answers

ios: Queue blocks in background and execute when network becomes available

I am developing an app using parse.com API (hosted backend which provides API to save data on their servers). I want to be able to use the app seamlessly online and offline. For this I would need to use a queue where I can place blocks that require…
Devang
  • 1,531
  • 3
  • 22
  • 38
13
votes
5 answers

How to get change in network connection notification from iOS Reachability Class?

Hi I want to capture whenever user gets a network connectivity in my application for this I have added apples Reachability class and below is the snippet I am using in my appDelegate class didFinishLaunchingWithOptions method, Reachability*…
Mobile Coe
  • 133
  • 1
  • 1
  • 4
12
votes
3 answers

How do I know whether my iPhone/iPad is connected to 2G or 3G?

I was trying to check wether the device is connected via 2G (GPRS, EDGE) or 3G (UMTS, HSDPA). I only found the Reachability example class from here (Apple Dev Example) This example only check wether its Wifi or WWAN. I wanna use it to decide wether…
Vinh
  • 944
  • 13
  • 34
12
votes
3 answers

Best Approach For Checking Internet Connection in iOS

I have been searching through internet to find the best way to check for internet connection in iOS that works for both in IPv4 and IPv6 network environment. I found there are many possible answers but very confused on which one to apply. What I…
skJosh
  • 631
  • 1
  • 8
  • 16
12
votes
4 answers

Can I prevent iPhone from using 3G under any circumstances?

I'm writing a travel guide related app that will download large databases (60meg) potentially overseas, with the reachability code I can tell when a host is reachable via wifi or 3g BUT I'm worried that if for some reason the wifi connection breaks…
dageshi
  • 141
  • 4
1
2
3
56 57