GithubHelp home page GithubHelp logo

Comments (2)

Tobi823 avatar Tobi823 commented on July 30, 2024 1

I suspect that something on your smartphone is causing this problem because it works on my devices, I have not receive other bug reports and I changed the code for "internet detection" a "long" time ago (07.05.2021 with version 73.1.3).

I see that you are using a VPN. Can you try it without it?

I narrowed the bug down to this part:

private fun isInternetAvailableNewWay(cm: ConnectivityManager): Boolean {
    val activeNetwork = cm.activeNetwork ?: return false
    val capabilities = cm.getNetworkCapabilities(activeNetwork) ?: return false
    return capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) &&
            capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)
}

This method evaluates to false/"no internet" if:

  • ConnectivityManager.activeNetwork is null. According to the documentation this can happen, if there is no default network.
  • ConnectivityManager.getNetworkCapabilities is null. According to the documentation this can happen, if the network is unknown.
  • the current network doesn't have the
    • NET_CAPABILITY_INTERNET (Indicates that this network should be able to reach the internet.) or
    • NET_CAPABILITY_VALIDATED (Indicates that connectivity on this network was successfully validated. For example, for a network with NET_CAPABILITY_INTERNET, it means that Internet connectivity was successfully detected.) capability.

Maybe you have disabled the internet detection on your smartphone (afaik Android phones are pinging Google servers to detect, if they have access to the Internet)? Maybe something different?

from ffupdater.

TPS avatar TPS commented on July 30, 2024

You're right, of course, AFAICT. I'll open this with them. Thanks!

from ffupdater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.