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

Reachability hangs application

Currently i am following thread to check wheather my internet is active or not in my application, but as it is taking time to give the response ,so this will freeze my UI. So is there any way to implement it without freezing UI(like NSOperation).
user1227928
  • 831
  • 1
  • 12
  • 27
0
votes
2 answers

iPhone: How to use Reachability without host?

In my app if user do not have internet connection I need to show "NO internet connection" message. To use Reachability like that: Reachability *netReach = [Reachability reachabilityWithHostName:@"host.name"]; is bad idea, because internet could be…
Jim
  • 8,874
  • 16
  • 68
  • 125
-1
votes
1 answer

Why am I getting errors with my Reachability.h file?

Why am I getting the following errors from my Reachability.h file in XCode? See the attachment below: http://file.reddexuk.com/2h2K152b2b2c270I2Z2M
pixelbitlabs
  • 1,934
  • 6
  • 36
  • 65
-1
votes
2 answers

How to check if iOS device has access to the internet?

So I am trying to solve some issues related to the internet connection (trying to fetch data from the backend, but failing). The issue is that we do check if the device is connected to the cellular or wifi, and if it is Wifi, then we say that it is…
Jkrist
  • 748
  • 1
  • 6
  • 24
-1
votes
1 answer

Need code to Check for server connectivity using Ansible

Below is how i invoke my ansible play ansible-playbook -v -i /web/admin/playbooks/applist.hosts /web/admin/playbooks/restart.yml -e ENV=dev -e ACTION=start --tags checkserver Below is my playbook: - hosts: "{{ENV}}_*" user: "{{USER}}" …
Ashar
  • 2,942
  • 10
  • 58
  • 122
-1
votes
1 answer

can't cast LaunchViewController to UINavigationController

I am trying to check the network status from the AppDelegate.swift instead of checking from LaunchViewController. I have written showOfflinePage in AppDelegate when I shut down my network I have this error cast Could not cast value of type …
NinjaDeveloper
  • 1,620
  • 3
  • 19
  • 51
-1
votes
1 answer

How to find if network connection goes through mobile data when both wifi and mobile data is on

As far as I know using reachability class , one can find if the device is connected with wifi or mobile data but what if both are kept on in the device. Will we be able to know using reachability class ? Is it possible to detect if data packets…
Shankar Naik
  • 401
  • 5
  • 16
-1
votes
2 answers

Ios app to work in intranet connection only

I am trying to make an ios app, where the app must work in intranet connection only, and if tried to hit api endpoint from different network, the app should show alert dialog. I tried working with apple's reachability code.. I dont have host name…
Ashwin Shrestha
  • 518
  • 3
  • 17
-1
votes
2 answers

iOS Network Reachability always return NotReach when the iOS device connect to VPN

i use AFNewWorkReachability check the network status,but the reachability always false when the device connecting the vpn network.why,and how fix? ths
刘芳友
  • 4,721
  • 2
  • 8
  • 3
-1
votes
3 answers

Reachability unreachableBlock not getting called when there is no internet connection

This is my code, Reachability *internetReachable = [Reachability reachabilityWithHostname:@"www.google.com"]; internetReachable.reachableBlock = ^(Reachability*reach)` { NSLog(@"REACHABLE!"); }; internetReachable.unreachableBlock =…
Raghee M
  • 11
  • 4
-1
votes
1 answer

Show No Internet Connection Message Like Instagram

I was wondering how can i show a 'No Internet Connection' Just how like Instagram does it, As an Example : That see-through custom message animating to show under the navigationController . Would really love to get this to my project , thank you…
RandomGeek
  • 303
  • 5
  • 20
-1
votes
1 answer

Reachability in Swift 3

I am new at this and can not seem to figure out how to use NSURLSession dataTaskWithResult:completion handler replacing NSURLConnection.sendSynchronusRequest(request as URLRequest, returning: &response in the following code. The latter has been…
Garageshop
  • 101
  • 9
-1
votes
1 answer

Reachability Class always returns Reachable

I'm using the Reachability class from apples demo projects to ping some servers pages. But no matter what I write in URL I always get ReachableViaWiFi. Reachability* reachability = [Reachability reachabilityWithHostName:URL]; NetworkStatus netStatus…
Talkanian
  • 19
  • 1
  • 5
-1
votes
3 answers

Disable user interaction for UIButton when network is not available in ios device

in my application i want to implement a functionality, i have an button in my application and i want when network is loss from iOS device then this button should automatically become disable, and when again get the network available properly then…
Chetan sharma
  • 378
  • 5
  • 21
-1
votes
5 answers

Check reachability asap in didFinishLaunching using AFNetworking before a view controller visible with RESideMenu

I'm using AFNetworking in my app, I'm checking for internet connectivity by their inbuilt class. Here's the code for this, - (void) startInternetConnectivityMonitoring { [[AFNetworkReachabilityManager sharedManager]…
Hemang
  • 26,840
  • 19
  • 119
  • 186
1 2 3
56
57