Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckInternet/AbortWhenNoInternet does not abort with only bluetooth connection #156

Open
kuhnroyal opened this issue May 11, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@kuhnroyal
Copy link
Contributor

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.

@marcglasberg
Copy link
Owner

Can internet be provided by Bluetooth?

@marcglasberg
Copy link
Owner

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.

@kuhnroyal
Copy link
Contributor Author

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

@marcglasberg
Copy link
Owner

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 marcglasberg added the enhancement New feature or request label May 13, 2024
@kuhnroyal
Copy link
Contributor Author

Configurable would be best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants