Repository navigation
Auto tunnel triggers green location API indicator very often --> battery drain? #1441
|
Hi guys, How does it look for you guys? How often do you see the location API green light indicator? Any ideas why this might pop up so many times for me? What is normal here? Thanks! |
Replies: 2 comments 4 replies
|
That green indicator is probably normal if auto tunnel checks the current Wi-Fi network name/BSSID. On Android, reading Wi-Fi identity is treated as location-sensitive, so the system shows the location privacy indicator even if the app is not using GPS. It also does not necessarily mean your Wi-Fi is reconnecting. The battery impact depends on whether the app is only reading the current network state or actively triggering Wi-Fi scans. Reading the current SSID/BSSID is usually cheap; repeated scans would be the thing to worry about. I would check whether auto tunnel is configured to react to trusted/untrusted Wi-Fi. If yes, that is likely what is causing the indicator to appear. |
|
Hello! No battery drain issue here. This is Google's modern Wi-Fi info api working as expected (although very annoying). Unfortunately, Google made a lot of strange choices when designing this API. I'll try to explain it simply... essentially you can only get this info from the onCapabilitiesChanged callback via an all or nothing flag to include location information for the Wi-Fi network and only via this callback. The API to query this information directly has been deprecated. This means that every time the capabilities of your Wi-Fi network changes it sees location access and triggers that location indicator. This is a well-known annoyance with this API. There are a couple of way to mitigate it:
|
Hello! No battery drain issue here. This is Google's modern Wi-Fi info api working as expected (although very annoying). Unfortunately, Google made a lot of strange choices when designing this API. I'll try to explain it simply... essentially you can only get this info from the onCapabilitiesChanged callback via an all or nothing flag to include location information for the Wi-Fi network and only via this callback. The API to query this information directly has been deprecated. This means that every time the capabilities of your Wi-Fi network changes it sees location access and triggers that location indicator. This is a well-known annoyance with this API.
There are a couple of way to mit…