Giter Club home page Giter Club logo

Comments (3)

ByteHamster avatar ByteHamster commented on June 14, 2024 3

I looked into this a bit more. So the problem is that some VPNs report being metered connections. This is why on AntennaPod 3.0 and earlier, we had the following:

  • If VPN and WiFi somewhere in the network stack: Never metered, no matter what the Android system (eg the VPN app) tells us
  • Otherwise, do what the Android system tells us

Now in 3.1, we have the same check but we rewrote the download service. The download is now handled by Android system components, which do not have the first VPN-specific check. That's why the following happens:

  • AntennaPod thinks it's not metered (because it works around misbehaving VPN apps)
  • It tells the Android system to start the download
  • The Android system waits until there is a non-metered connection

So, from AntennaPod's end, we need to use the same check as the Android system to fix this inconsistency. That means that users with misbehaving VPN apps will see the confirmation dialog on 3.1, while they got a direct download on 3.0. But at least it is no longer in an inconsistent state where we start a download that won't actually be scheduled by the system.

In the long term, VPN apps should stop messing with the network connection. This causes so much headache. People open VPN related issues every few days. And that's just because VPN companies are promising things that are straight up nonsense to make money from people not knowing what they are doing... (okay, enough rant about this VPN hype)

from antennapod.

ByteHamster avatar ByteHamster commented on June 14, 2024

Do you have "refresh+download over mobile data" enabled in AntennaPod? Some VPN services pretend to be mobile networks in order to make apps use less traffic. In that case, AntennaPod waits until it has WiFi again (eg. VPN disabled) before starting the download.

from antennapod.

tay64 avatar tay64 commented on June 14, 2024

Refresh, yes. Download, no: it asks me every time if I'm on mobile data.

Just tested:

  • on mobile data, Warp on, downloads over mobile disabled: a dialog pops up asking if I want to proceed
  • on WiFi, Warp on, downloads over mobile enabled: dowload commences immediately
  • on Wifi, Warp on, downloads over mobile disabled: no dialog and download doesn't start

So it seems your hypothesis is pointing in the right direction, but it's not the whole story: AntennaPod realises it's on WiFi so it doesn't show the dialog, but at the same time it thinks this wifi is "sort of like" mobile data and won't start the download.

Is there any way for me to check if system reports current connection as metered?

from antennapod.

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.