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
2 answers

iOS reachability says reachable with no internet connection on 3g

I am developing an iPhone app and whenever I make a call to my web service I want to make sure that the user is connected to the internet. I used the Reachability class provided by Tony Million on github, link is her for anyone who wants to grab…
Shawn Frank
  • 4,381
  • 2
  • 19
  • 29
4
votes
2 answers

How do I check the reachability of a server

Possible Duplicate: Undefined symbols for architecture armv7: “_SCNetworkReachabilityCreateWithAddress” I tried a couple of things I found on here, and none have worked. I added the reachability.h and .m files from Apple to my project. I'm…
user1927534
  • 51
  • 1
  • 6
4
votes
1 answer

Reachability issues since updating to iOS 6

I have a tried and tested enterprise iPhone app that's been in heavy use for over a year, and works great. The app makes frequent use of asynchronous NSURLConnectionRequests to fetch data from a server. I monitor availability of network…
Snips
  • 6,575
  • 7
  • 40
  • 64
4
votes
1 answer

Force iOS device app to talk through the local WIFI network

I'm building an application that will run in a museum with a local area wifi network without internet access, for some strange reason I'm not able to fully "join" this network with an iOS device. Enabling internet access on this network solves the…
gabry
  • 1,370
  • 11
  • 26
4
votes
1 answer

What exactly does Apple require for a reachability test?

Does Apple require ongoing reachability testing (and alerting), or can one just test once at App launch? This is all Apple says: "it's very important that your code include a customer alert or notification when the network is not available." Quote…
Ric Steinberger
  • 147
  • 1
  • 1
  • 9
4
votes
3 answers

iOS Test Connectivity to the Server During App Lanuching Takes Too Long

I have an app that allow automatic login for a user. What my boss want is, when the app launches, the app need to test connectivity to our server (not just test whether there is WiFi or 3G network). I borrowed apple's Reachability sample, it works.…
Raymond Wang
  • 1,484
  • 2
  • 18
  • 33
4
votes
2 answers

Reachability with Address - Server AND Port - iOS 5

I am trying to check whether a server is online or offline: I face the problem that it has a port when connecting to it My code at the moment: struct sockaddr_in address; address.sin_len = sizeof(address); address.sin_family =…
21zach2
  • 159
  • 1
  • 2
  • 12
4
votes
2 answers

Apple Reachability sample doesn't work in background mode

I've seen that there's a lot of entries in the forum about Apple's Reachability Class, but I haven't seen a solution for this one. I'm developing a VoIP app that needs to detect connectivity changes in background mode and real time.…
torino
  • 51
  • 4
4
votes
2 answers

Why bother with Apples Reachability class and not just try making the actual connection?

Apple provides a class called Reachability. I almost used it but then found a lot of people reporting problems on SO. For example it would report false positives or bring up the same error notification multiple times making the user tap a "no…
Proud Member
  • 40,078
  • 47
  • 146
  • 231
4
votes
2 answers

iPhone app loses internet connectivity (NSURLConnection not returning)

I'm having an issue that's incredibly hard to debug. If my app is using WiFi and it sits idle for around 30 minutes, sometimes when I wake it up, the NSURLConnection no longer responds. Requests are sent, but never return. At first, I thought…
Shaun Budhram
  • 3,690
  • 4
  • 30
  • 41
3
votes
4 answers

When should I check for internet connectivity

My iPhone app requires internet to function. Should I checks for connectivity everytime a internet function is executed? Or should I use my appDelegate to listen for messages from something like the reachability class to determine if the connection…
Hackmodford
  • 3,901
  • 4
  • 35
  • 78
3
votes
2 answers

Get iPhone app to use carrier data as wifi has no internet

I have an app that talks to a network via wifi. My issue is that the wifi network has no internet connection, so I want to use the carrier network to talk to the outside world whilst also connected to wifi. I've done some searching but haven't found…
user1102068
  • 79
  • 1
  • 5
3
votes
1 answer

Issue with NWPathMonitor class on internet changes

I'm using the NWPathMonitor class to check the internet changes. But I have an issue when using it. The issue is when internet is off and once it comes back, monitor.pathUpdateHandler is getting called/notifying twice. Where as in internet off case…
Jayachandra A
  • 1,335
  • 1
  • 10
  • 21
3
votes
0 answers

Immediate crash on device using SCNetworkReachabilityGetFlags with iOS app

I am using SCNetworkReachabilityCreateWithName & SCNetworkReachabilityGetFlags to test for network availability in my iOS device. When I run the app in the Simulator, or run it on the device, but attached to the debugger, everything's completely…
Gregory Hill
  • 155
  • 1
  • 14
3
votes
2 answers

How to use 2 Reachability class's together in one project?

I'm trying to check the network reachability with the following code found here on stackoverflow. The only problem is that I already have the reachability classes in my project due to using the ASIHTTPRequest classes. I'm unable to get my project to…
0SX
  • 1,252
  • 6
  • 24
  • 47