async_redux icon indicating copy to clipboard operation
async_redux copied to clipboard

CheckInternet/AbortWhenNoInternet does not abort with only bluetooth connection

Open kuhnroyal opened this issue 1 year ago • 5 comments

The mixins only check for ConnectivityResult.none. If the result list for example contains only ConnectivityResult.bluetooth then there is effectively no internet available.

Does it make sense to invert the check and verify if the result contains one of wifi, mobile, vpn, ethernet? Not sure about other.

kuhnroyal avatar May 11 '24 17:05 kuhnroyal

Can internet be provided by Bluetooth?

marcglasberg avatar May 13 '24 02:05 marcglasberg

Bluetooth technology itself does not provide Internet access. Bluetooth is primarily designed for connecting devices over short distances, typically up to about 10 meters (30 feet), to allow them to communicate or exchange data. Common uses include connecting peripherals like keyboards, mice, headphones, and speakers to computers or smartphones.

However, you can use Bluetooth to share an Internet connection between devices in a process called tethering. For instance, if your smartphone has an active Internet connection, you can enable Bluetooth tethering to share that connection with another device, like a laptop or tablet. Here’s how it typically works:

  1. Enable Internet Connection: The primary device (like a smartphone) must have a cellular data connection or another form of Internet access.
  2. Enable Bluetooth on Both Devices: Turn on Bluetooth on both the device with the Internet connection and the device you want to connect to the Internet.
  3. Pair the Devices: Follow the instructions on each device to pair them via Bluetooth.
  4. Enable Tethering: On the device with the Internet connection, go to the Bluetooth settings and enable the option for Internet sharing or tethering.

While Bluetooth can be used in this way, it is not the most efficient method for sharing Internet access compared to options like Wi-Fi tethering, which is faster and supports connections from greater distances and multiple devices simultaneously. Bluetooth tethering is generally slower and might be suitable for basic browsing when no other options are available.

marcglasberg avatar May 13 '24 02:05 marcglasberg

I don't think internet over bluetooth should be a use-case that needs to be considered here.

kuhnroyal avatar May 13 '24 09:05 kuhnroyal

Why? If someone is using internet over bluetooth then the app doesn't work because it will keep saying there is no internet. Anyway, I think I will make it configurable, and leave this decision to each developer.

marcglasberg avatar May 13 '24 17:05 marcglasberg

Configurable would be best!

kuhnroyal avatar May 13 '24 17:05 kuhnroyal