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

How to Test if Wifi is Working without actually connecting to a Wifi Network in iOS

I need to test Wifi connectivity or Wifi working status in my app. In my current design I am using Reachability to test if user can connect to Wifi using [Reachability currentReachabilityStatus] == ReachabeViaWifi The issue is I do not want to…
ShayanK
  • 1,243
  • 2
  • 13
  • 27
3
votes
1 answer

AFHTTPRequestOperation still running even the operation queue is suspended

I'm using the latest AFNetworking V2.0. I have setup series of operations to be run on the AFHTTPRequestOperationManager's operation queue if the reachability is available. I have setup a global AFHTTPRequestOperationManager in the appDelegate and…
3
votes
1 answer

How to check for Network Reachability in iOS

I am having one small issue. I am using Reachability class for testing internet connection and it is working perfectly. However suppose if user is using Wifi, but they cannot have access to internet, it should retry for few around 10 seconds, and…
Kashif Jilani
  • 1,207
  • 3
  • 22
  • 49
3
votes
1 answer

ip address change notifications

I'm using the Reachability class to detect wifi availability. There are some situations when an ipad will be connected to one wifi network,and a user will connect to another available wifi network. During these network transitions …
dubbeat
  • 7,706
  • 18
  • 70
  • 122
3
votes
1 answer

NSNotificationCenter 'selector' working more than once is single Network status change

In my app I want to detect network status changes to do some operations at that time. I have added following code in app-delegate. when I turn on net connection "networkStatusChanged:" method called once which is correct. and when I turn off…
Vaisakh
  • 1,088
  • 1
  • 8
  • 14
3
votes
4 answers

iOS Reachability fails to catch the case where connected to WiFi but not logged in

Today, I had my Beta-version app out in public. I was at a hotel and had not yet obtained the access code for the WiFi. When testing the reachability, I noticed that it didn't fail as it should have. It was connected to WiFi but nothing was…
mpemburn
  • 2,776
  • 1
  • 35
  • 41
3
votes
2 answers

CNCopySupportedInterfaces() returning no value although wifi connected

I am using CNCopySupportedInterfaces() to get bssid and it is not returning any value. Not sure why. My code looks like this: #import CFArrayRef myArray = CNCopySupportedInterfaces(); …
lakshmen
  • 28,346
  • 66
  • 178
  • 276
3
votes
1 answer

XMPPFramework: Sending a message with timeout

I'm using XMPPFramework in my iOS app to send and receive command messages between client and server. The server would answer to different command messages immediately. Sometime the connection is very slow, the message sent from client would have no…
Protocole
  • 1,733
  • 11
  • 28
  • 42
3
votes
1 answer

Voice Reachability in iOS

I have the reachability class working in my app for cellular data (WWAN) and WiFi. I'm curious if anyone has found a way to determine voice reachability as the cell network sometimes provides voice call capability without data traffic. Any ideas are…
Hank Brandenburg
  • 319
  • 3
  • 12
3
votes
7 answers

Undefined symbols related to Reachability after migrating to Xcode 4.5

I am receiving the following error after I moved my Xcode project from Mac that running on Xcode 4.2 into another mac running Xcode 4.5. "_SCError", referenced from: -[RKReachabilityObserver scheduleObserver] in…
fadd
  • 584
  • 4
  • 16
  • 41
3
votes
3 answers

Automatically sync with central database

I have developed an application. My application takes feedback from users. When network is not available, then that data is saved in local db. But, once the network is available, it will sync automatically with the central database. But, I have some…
Bharath
  • 3,001
  • 6
  • 32
  • 65
3
votes
2 answers

How to check for network reachability on iOS in a non-blocking manner?

In my iOS project, I would like to display a message to the user to connect to the internet before certain network operations, so I wrote the following check using Apple's Reachability class: Reachability *reach = [Reachability…
Brian Gesiak
  • 6,648
  • 4
  • 35
  • 50
3
votes
3 answers

iOS Reachability test

For our app, we use the following code to check for internet connection whenever the app user is trying to post a message. When we test the feature, it works fine when turning on the airplane mode. Then when we turn off the airplane mode, the call…
tom
  • 14,273
  • 19
  • 65
  • 124
3
votes
2 answers

Reachability class is not working in iOS

I have implemented Reachability Api 2.2. When the network goes from an off state to an on state it does not fire. In addition, can I implement it in the app delegate? If so, where should I remove observer? Here is my code (which does not call…
Mann
  • 5,477
  • 6
  • 45
  • 57
2
votes
2 answers

Trying upload data in Local Server using MKNetworkKit

I want to upload data, images, txt files, pdf documents , etc. Im using MKNetworkKit to connect cleanly. With examples of this framework i try do it. I add to my proyect a class extends of MKNetworkEngine with a method for upload from file: #import…
Davidin073
  • 991
  • 4
  • 12
  • 25