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

Is there any way to know what network an iPhone is connected to (LTE vs GSM)

With the release of iOS 6 and iphone 5 I'm trying to figure out how my app can know if the phone is in LTE mode vs GSM mode. I haven't seen any updates to the Reachability API which can give whether it is connected to Wifi vs WWAN but I need to…
brianestey
  • 8,202
  • 5
  • 33
  • 48
7
votes
1 answer

Reachability Class not working properly for VPN connection

I am working on an application which needs VPN connection for Data Synchronization. I am using reachability class to check the Host availability. @Functionality :- When app is connected to VPN through Junos Pulse app, data synchronization should…
Gandalf
  • 2,399
  • 2
  • 15
  • 19
7
votes
1 answer

Reachability Notification Never Called

I am having a hard time using Reachability in my code. I would like to keep it very simple by initiating an observer at launch and then just receiving change notifications. In the following code, the reachabilityChanged method is never called. I’ve…
6
votes
2 answers

Use Reachability.m in Xcode 4.2

I am trying to use the Reachability function in my application. Now I get several errors in the Reachability.m file. I think it's due to the new Xcode version (does not allow [release]). Does anyone have experience in this case?
filou
  • 1,609
  • 5
  • 26
  • 53
6
votes
2 answers

iOS network reachability - doesn't seem to be working

I'm following How to check for an active Internet connection on iOS or OSX? and http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html to test for connectivity, but am running into some pretty basic issues. For…
Buchannon
  • 1,671
  • 16
  • 28
6
votes
2 answers

How to find server is reachable with Reachability code in iPhone?

I have client server say "http://abc.com" and i want to check whether this server responding or not. How to check this with Reachability code from apple? As i see that code but not able to get where to write my client's url to check this. Please…
dks1725
  • 1,631
  • 1
  • 20
  • 29
6
votes
1 answer

Latest Reachability.m (Example code version 2.2) compatible with iOS 3.0?

Does anyone know if version 2.2 (the latest) of Apple's iOS 'Reachability' example code will run on iOS 3.0? I want to support iOS 3.0, and Reachability.h and .m is the first non framework code I'm using in my app. In my own code I usually read the…
MattyG
  • 8,449
  • 6
  • 44
  • 48
6
votes
2 answers

Can we read Wireless Data permissions on iOS?

If internet is not reachable, is it possible to programmatically distinguish between the following permission cases? A case where user has denied permissions to use Data for the app. A case where user has granted permissions to use Data, but phone…
Cœur
  • 37,241
  • 25
  • 195
  • 267
6
votes
2 answers

iPhone - Using Reachability throwing duplicate symbol _OBJC_IVAR error

I have added the Apple Reachability files to my project and I am already getting errors. I have NOT even added these files to any of my classes, only added them to my project. How could I already be getting this error? When compiling I get the…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
6
votes
4 answers

Swift iOS- What to do when there is a wifi connection but no internet connection?

I'm using Alamofire in my iOS app. I use bool values in viewWillAppear and in AppDelegate with NSNotifications to check if there is an internet connection. If there is no wifi connection a pop up appears to inform the user. If there is a wifi…
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256
6
votes
1 answer

How do you make an iOS app launch a captive portal (hotspot login)?

When using Safari at a place with a captive portal like Starbucks, iOS devices will launch a special modal webview to authenticate with the portal. I've seen third party apps trigger this so it's possible to do outside of Safari but I don't know…
Dylan
  • 718
  • 7
  • 16
6
votes
1 answer

Supporting IPv6-only Networks what things should be taken care?

Regarding apple's announcement regarding iPv6 -only networks, i have some queries. https://developer.apple.com/news/?id=05042016a 1) What will happen if my apps are already uploaded without ipv6 support ? 2) I am using old Reachability class, will…
PJR
  • 13,052
  • 13
  • 64
  • 104
6
votes
2 answers

iOS Reachability reports no WiFi, when WiFi is active

I am using Reachability class from Apple to detect network events that have impact in the functionality of my app. It is a voip app that uses setKeepAliveTimeout, so every ~10 minutes wakes up reads the network status and decides if the connection…
cateof
  • 6,608
  • 25
  • 79
  • 153
6
votes
1 answer

Reachability change notification should be called only once

I'm using Reachability in my swift project. I had below code in AppDelegate NSNotificationCenter.defaultCenter().addObserver(self, selector: "reachabilityChanged:", name: ReachabilityChangedNotification, object:…
Ankita Shah
  • 2,178
  • 3
  • 25
  • 42
6
votes
1 answer

iOS: How to check if cellular data usage is on for an app?

In my app I want to be able to detect if the cellular data usage is on for a particular application, and depending on the result of the check act appropriately. Is there a way to perform this programmatic check?
Eugene Gordin
  • 4,047
  • 3
  • 47
  • 80