reachability Questions
2
Assume we have this function:
function returnNever(): never {
throw new Error();
}
When creating an IIFE, the code that comes after it becomes marked as unreachable:
(async () => {
let b: str...
Tangled asked 6/11, 2019 at 14:51
31
Solved
When I try to check for an internet connection on my iPhone I get a bunch of errors. Can anyone help me to fix this?
The code:
import Foundation
import SystemConfiguration
public class Reachabil...
Kenway asked 9/6, 2015 at 21:45
3
How to check reachability of particular website?
I am connected to wifi network for internet access, which have blocked some sites. How to check if I have access to those sites or not?
I have ch...
Solemn asked 31/5, 2017 at 5:28
9
I am using below code for making HTTP request in server.Now I want to know whether it is connected to internet or not. Below is my code
let request = Alamofire.request(completeURL(domainName: pa...
Ruthenic asked 26/12, 2016 at 6:37
3
Solved
Has anyone found a halfway decent guide to implementing Reachability on iOS?
Beverlybevers asked 24/9, 2010 at 21:1
11
Solved
From iOS 12 you simply use NWPathMonitor which is a line of code (example).
For historic purposes:
I'm trying to integrate network connectivity detection into my app, however it seems that somewhe...
Gules asked 5/12, 2014 at 6:54
11
Solved
I want functionality similar to AFNetworking in Objective-C with Alamofire NetworkReachabilityManager in Swift:
//Reachability detection
[[AFNetworkReachabilityManager sharedManager] startMonitori...
Fault asked 16/2, 2016 at 8:45
39
Solved
I would like to check to see if I have an Internet connection on iOS using the Cocoa Touch libraries or on macOS using the Cocoa libraries.
I came up with a way to do this using an NSURL. The way I...
Biamonte asked 5/7, 2009 at 8:45
8
Solved
I'm trying to convert this code snippet to Swift. I'm struggling on getting off the ground due to some difficulties.
- (BOOL) connectedToNetwork
{
// Create zero addy
struct sockaddr_in zeroAddr...
Emeldaemelen asked 2/9, 2014 at 12:17
11
Solved
I am not sure if this is possible, but I have this scenario.
I have a website displayed in my UIWebView which has the link set in a UISegmentedController.
They website can detect if you are on wif...
Yurt asked 29/10, 2011 at 11:34
3
Solved
After I have read the answer for this question I have found that using reachabilityWithHostName does not work with a URL such as this one: mySite.com/service.asmx , is there anyway to check reachab...
Freehearted asked 8/3, 2012 at 11:25
4
I just need to check the internet connection availability before start communicating with the service in my iphone App. I am using Swift 1.2 and Xcode 6 as my development environment...
I've just...
Subbase asked 24/8, 2015 at 15:8
4
Solved
I'm developing an iOS application written in Swift that communicates with a HTTP server on the local network, and I'm using Apple's Reachability class to determine wether the remote machine running...
Wampler asked 12/7, 2014 at 13:33
6
I get the above mentioned issue all the time when I first launch the app in the day.
When I first launch the app, I make server calls to get some data and then play animation video. Server calls i...
Syllabogram asked 18/12, 2015 at 15:50
2
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...
Mattie asked 17/5, 2018 at 9:26
16
Solved
I know this question will appear to be a dupe of many others, however, I don't feel the simple case is well explained here. Coming from an Android and BlackBerry background, making requests through...
Gaur asked 11/1, 2012 at 0:13
3
I have been searching through internet to find the best way to check for internet connection in iOS that works for both in IPv4 and IPv6 network environment. I found there are many possible answers...
Naji asked 2/8, 2016 at 16:39
5
Solved
I am developing an app using parse.com API (hosted backend which provides API to save data on their servers). I want to be able to use the app seamlessly online and offline.
For this I would need ...
Malone asked 24/5, 2012 at 8:15
3
Solved
I have internet connection and can browsing with browser.
Here is my codes to check Reachability with AFNetworking.
- (BOOL)connected {
return [AFNetworkReachabilityManager sharedManager].reacha...
Featureless asked 23/2, 2014 at 7:23
2
Solved
In my code I used to use three ways for checking Internet, but there is limits to them:
1/ Reachability method:
- (BOOL)isInternetOk
{
Reachability *curReach = [Reachability reachabilityWithHost...
Sericin asked 19/1, 2018 at 12:53
3
Solved
I am creating a new Traveling Application in iOS, this application is highly dependent on Maps and will include two Maps.
My first Map will work when the user has a strong Network Signal (Appl...
Hackett asked 26/1, 2013 at 0:56
10
Solved
I'm wondering how I can check if the user is connect to internet through WIFI or cellular data 3G or 4G.
Also I don't want to check if a website is reachable or not, the thing that I want to...
Metallo asked 31/7, 2015 at 9:22
7
Solved
I'm new to iOS development and am struggling to get the reachability.h class to work. Here is my code for view controller:
- (void)viewWillAppear:(BOOL)animated
{
[[NSNotificationCenter defaultCe...
Mastoid asked 4/3, 2011 at 14:28
4
Solved
I have an app that uses Apples reachability code. When I tab out of the app, turn on airplane mode, go back into the app, I correctly get a message that says no connection is available. If I go bac...
Romola asked 3/2, 2011 at 17:30
5
Hi I want to capture whenever user gets a network connectivity in my application for this I have added apples Reachability class and below is the snippet I am using in my appDelegate class didFinis...
Oneil asked 23/7, 2013 at 8:15
1 Next >
© 2022 - 2024 — McMap. All rights reserved.