forecastie icon indicating copy to clipboard operation
forecastie copied to clipboard

Option to use passive location

Open naoliv opened this issue 3 years ago • 5 comments

If possible, could we have an option to use the PASSIVE_PROVIDER to obtain our current location, please? (for situations where we don't need or don't want to use the GPS receiver, for example)

naoliv avatar Sep 15 '20 05:09 naoliv

Do you mean via network data, i.e. wifi/cell towers?

robinpaulson avatar Sep 15 '20 17:09 robinpaulson

Or maybe use the Fused Location Provider API? (which has a description as "Using the fused location provider API, your app can request the last known location of the user's device")

I don't know exactly the inners of Android, but I would like the app to know my location, as best as possible, without using the GPS.

naoliv avatar Sep 15 '20 18:09 naoliv

As documentation says, with PASSIVE_PROVIDER app get location when some other app ask system about location (through internet or GPS). But this is the same data which app gets when asks GPS explicitly. A user can use search button to find the city and as I know Forecastie will use this city to get forecast without asking Android for location.

Add use of PASSIVE_PROVIDER is easy but I agree that there should be added options to enable it in the settings as well. May be even sortable list of available approaches of getting phone's location to give a user opportunity to set priorities.

fAntel avatar Sep 15 '20 18:09 fAntel

A user can use search button to find the city and as I know Forecastie will use this city to get forecast without asking Android for location.

Yes. What I was thinking is: if I travel to some other city and open Forecastie, it should see that I have moved (by using PASSIVE_PROVIDER, NETWORK_PROVIDER or the fused API) and update my location, using the best data available (without using GPS), without needing to manually update my location.

naoliv avatar Sep 15 '20 18:09 naoliv

If possible, could we have an option to use the PASSIVE_PROVIDER to obtain our current location, please? (for situations where we don't need or don't want to use the GPS receiver, for example)

I have an issue where Forecastie does not update the location when traveling. I need to open settings and click "detect location" for the location to be updated. Even when my location is known by GPS, forecatie does not update unless I click "detect location" . Is this the same issue you are describing?

mrtootoo avatar Sep 17 '20 14:09 mrtootoo