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

iOS NAT64 IPv6 environment issue

Now that apple has changed their review environment to an IPv6 only network ive been running into troubles with my application while testing. The application requires the user to input their server/systems IP address, port (4401) and credentials to…
3rdeye7
  • 536
  • 4
  • 25
2
votes
1 answer

How to stop function execution if internet connection is lost

I use lib named RealReachability that getting currently reachability status in real time! And i have a function that getting data from my server. Now its look like this: RealReachability.sharedInstance().reachabilityWithBlock { (status:…
Dmitry
  • 2,963
  • 2
  • 21
  • 39
2
votes
1 answer

Reachability: Airplane Mode with Wifi ON

I'm currently using Reachability to detect an available connection. This works great when there's nothing or when there's a good connection. But what if my user is on a plane with its own wifi node that is not connected to the internet at large?…
Matt Bearson
  • 993
  • 8
  • 15
2
votes
1 answer

Is Apple's current Reachability class backwards-compatible with iOS 3.1?

I'm implementing Apple's Reachibility class into my application. The app's base SDK is iOS 4.0, and its deployment target is iOS 3.1. I do not have a 3.1 device to test with, so can anyone tell me if it is backwards compatible? The documents for…
James Skidmore
  • 49,340
  • 32
  • 108
  • 136
2
votes
1 answer

Monitor the status of the Internet Swift

I know how to check the network connectivity through Reachability.Swift. I want to achieve some thing like, in a view controller, if internet check in the background after the view load, I even know we can start a NSTimer so that it will check lets…
Saty
  • 2,563
  • 3
  • 37
  • 88
2
votes
1 answer

`SCNetworkReachabilityScheduleWithRunLoop` or `SCNetworkReachabilitySetDispatchQueue`? And race condition

Our Objective-C app requires detection of network reachability changes. CocoaPods offers currently way too many alternatives, so we don't know how to select one. All reachability pods uses either SCNetworkReachabilityScheduleWithRunLoop or…
Cœur
  • 37,241
  • 25
  • 195
  • 267
2
votes
2 answers

Can Firebase be reliably used for detecting reachability instead of iOS reachability APIs

I recently started working on an iOS app powered by firebase. I was wondering if using firebase's special location /.info/connected is a good way to detect if the user has internet connection or not. I know this would be usually done using…
kau
  • 372
  • 1
  • 3
  • 14
2
votes
1 answer

Getting this error: thread 1: exc_bad_instruction(code=exc_i386_invop,subcode=0x0)

I have developed an iOS application in swift 2.0 and have used a class called Reachability to determine whether the user is connected to the internet or not. The application runs, however the compiler stops and outputs this error: thread 1:…
2
votes
2 answers

Reachability problem with notifications on a separate thread

I make use of Apples Reachability class and it works if I keep it on the main thread(bad approach). If I instead move it to a separate thread the notification is never called. In didFinishLaunchingWithOptions i call the following: [NSThread…
mbogh
  • 1,361
  • 11
  • 28
2
votes
3 answers

How to check if application is connected to Internet

I wanted this class to push or show an alertView saying it's not connected to Internet public class Reachability { class func isConnectedToNetwork()->Bool{ var Status:Bool = false let url = NSURL(string: "http://google.com/") let…
suisied
  • 426
  • 1
  • 6
  • 19
2
votes
1 answer

iOS Reachability when app not running

a simple question: is it possible to get a message, notification or similar when the internet connection is available when app is killed or not running? For my purpose, I need a way to synchronize all my notifications because APNs can send only the…
CeccoCQ
  • 3,746
  • 12
  • 50
  • 81
2
votes
1 answer

watchOS 2 reachability

How can I determine the reachability in watchOS2? If I import reachability.h, Xcode doesn't find the SystemConfiguration.h framework.
Kotik_o
  • 295
  • 6
  • 19
2
votes
2 answers

Change IBOutlets values after applicationWillEnterForeground crashes my app

Using: XCode 7, iPhone 5 (iOS 8.3), WiFi, Reachability (check the internet connection). While my app is in background and I click to open my app it checks the conncetion and load some functions and in 1 of the functions I try to…
Bogdan Bogdanov
  • 882
  • 11
  • 36
  • 79
2
votes
1 answer

Reachability on iPhone app with a false positive - will it get past apple?

I am using this code... Reachability *r = [Reachability reachabilityWithHostName:@"www.maxqdata.com"]; NetworkStatus internetStatus = [r currentReachabilityStatus]; if ((internetStatus != ReachableViaWiFi) && (internetStatus !=…
user157733
  • 569
  • 2
  • 12
  • 26
2
votes
1 answer

Checking internet connection with PNReachability class

I'm using Tony Million's Reachability for displaying a UIAlertView if the device is not connected to the internet. It works almost correctly, but not perfect on iOS8. Fortunately I'm using the PubNub SDK and I discovered PNReachability class during…
rihekopo
  • 3,241
  • 4
  • 34
  • 63