Questions tagged [internet-connection]

Anything related to the hardware, software tools and techniques needed to establish and manage an Internet connection.

Anything related to the hardware, software tools and techniques needed to establish and manage an Internet connection.

463 questions
9
votes
1 answer

How to check whether there is internet connection with the device: cocos-2d

In one of my iPhone app, I need to find out whether there is internet connection with the device or not. Anyone pls help?
Krishna Raj Salim
  • 7,331
  • 5
  • 34
  • 66
9
votes
1 answer

Without internet connection, how xmlns attribute can work and understand by browser?

A simple XHTML document, with the minimum of required tags: and xmlns attribute has a http link. If I am working on localhost and if I don't have an Internet connection, can't I work on XHTML? …
hakki
  • 6,181
  • 6
  • 62
  • 106
9
votes
2 answers

How to find out whether computer is connected to internet?

How to find out whether computer is connected to internet in python?
amir
8
votes
2 answers

Capture requests globally in angular 4 and stop if no internet

I can get the connection status using window.navigator.onLine and using the HttpInterceptor as mentioned below i can get access to requests globally. But how do i cancel a request inside the HttpInterceptor? Or else is there a better way to handle…
8
votes
1 answer

Is there any way to detect network connection type using javascript?

I would like to know is there any way to check if user is connected from 2G, 3G, 4G, or WiFi using javascript. As of my knowledge only Mozilla provides a Network Information API which helps to detect general connection type like 'wifi', 'cellular'…
Prasad
  • 143
  • 1
  • 1
  • 8
8
votes
2 answers

Dialog box if there is no internet connection using jquery or ajax

If there is no internet connection ,it will show some error message using dialog box like " No internet connection" without using java .I need to display using jquery or ajax script alert...
Raj
  • 193
  • 1
  • 3
  • 13
7
votes
1 answer

Combine WiFi Specifier and Suggestion APIs on Android Q

I am building an app where the connection to a 2nd device is the essence. Therefore, I used the WifiNetworkSpecifier API. However, the application must be able to automatically reconnect to the target network once the users leave and return to the…
7
votes
1 answer

How do I check for internet using Moya and RxSwift?

As far as I understand Alamofire is pulled in with built in Reachability, so my own handler would look something like: import Alamofire let reachabilityManager = NetworkReachabilityManager() reachabilityManager.listener = { status in switch status…
AMAN77
  • 6,218
  • 9
  • 45
  • 60
7
votes
1 answer

How to know which SIM is consuming mobile data in dual SIM android phone?

I am building a network monitor app. Here I have successfully implemented all the things like track data usage from Wifi or mobile data, but I want to know which SIM is connected to internet and consuming mobile data. Using below code I am able to…
7
votes
0 answers

navigator.onLine is returns true when there is no internet connection

navigator.onLine is always returns true when there is no internet connection in firefox but ie10 and google chrome is working correctly. I'm using firefox version 19. How to check internet connection using javascript? Thanks in advance
Natesan
  • 1,135
  • 2
  • 14
  • 21
7
votes
3 answers

Implement Broadcast receiver inside a Service

I want to check Internet connection throughout the run time of my Android application. I tried using services but seems like it is not the best option. Is there any possible way for me to implement a broadcast receiver with in a service? Or do I…
DbxD
  • 540
  • 2
  • 15
  • 29
6
votes
3 answers

ios: How to display "choose wireless connection" popup?

If there is no internet connection and you start for example the safari app with Ipad or Iphone, a popup appears saying: "Choose wireless network" Is there a way to force this popup to show up in my app when I want to? The problem is, I have a…
JayAr
  • 441
  • 1
  • 5
  • 19
6
votes
1 answer

How to simulate Docker container losing internet connectivity?

I'm using Docker Desktop for Windows, running a couple of linux containers using docker-compose. These containers communicate with each other inside their own Docker network. One of the containers is set to push some data to the cloud. I need some…
empz
  • 11,509
  • 16
  • 65
  • 106
6
votes
11 answers

Check for internet connection constantly

How can I check for an internet connection constantly in my application and respond if the connection is not available? Currently I am using: while(true) { if(HasConnection()) { //doSomething.. } //stop app by 1sec } but it seems rather…
The Mask
  • 17,007
  • 37
  • 111
  • 185
6
votes
5 answers

How to test for active internet connection in android

I'm using this method to ping google server so I can check for active internet connection but I discovered that it doesn't work on all devices. I've tried using other methods like HttpURLConnection and URLConnection but they all return false even…
Kennedy Kambo
  • 372
  • 4
  • 24
1 2
3
30 31