this post was submitted on 08 Jul 2023
46 points (100.0% liked)
Boost For Lemmy
7054 readers
12 users here now
Community of the Android app Boost for Lemmy
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
But knowing whether you're on mobile data or Wi-Fi can be useful for, say, only allowing images to auto-load on Wi-Fi. Those kinds of network-based options require knowing more information about the type of connection, which on android means asking for Location permissions.
Incorrect. If you aren't using
WifiManager
, you don't needACCESS_WIFI_STATE
or location permissions. ConnectivityManager gives information to know the connection type with onlyACCESS_NETWORK_STATE
, which is granted automatically on install without prompting the user to allow.And besides that, you should really be checking
ConnectivityManager.isActiveNetworkMetered()
instead of the connection type anyway, since the user could be on tethered wifi, for instance.I wish more app developers looked at if the connection is metered or not. I have unlimited mobile data, but there are so many apps who needlessly try to protect my precious data by blocking downloads based on connection type.