woheller69 / omweather

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App ingores "update interval" option

opened this issue · comments

The app is accessing my location and contacting an online service mutiple times per hour no matter my settings.
This not only uses batter power but also makes unnecessary connections which may have privacy implications since it's happening so often.

How to Reproduce
Steps to reproduce the behavior:

  1. Install omWeather on an Android device.
  2. Allow access to GPS.
  3. Set "update interval" to an arbitrary value.
  4. Monitor the connections the app makes.
  5. The app connects to an online service and accesses the device location multiple times per hour.

Expected behavior
I assume the app should make as few connections as possible. I'd much prefer one or two connections per day and that's it. The app should respect the "update interval" setting.

Screenshots
Screenshot_20230312-155706
Screenshot_20230312-155722
Screenshot_20230312-160932

Environment (please complete the following information):

  • App version: v1.2
  • Android version: 13
  • CalyxOS version: 4.6.1
  • Device: Fairphone 4 5G

I guess you are using the widget. Then it updates roughly every 30 min and when you change location by a few kilometres.

Otherwise the widget does not make any sense.

I guess you are using the widget. Then it updates roughly every 30 min and when you change location by a few kilometres.

Oh, sorry, yes. I've failed to mention that...

Otherwise the widget does not make any sense.

...but why does the widget need not to respect the update interval I've set manually?

The first tab is contolled by the widget. The widget wakes up and updates every 30min if the screen is switched on.

If you want to save energy you should set location to manual only. This will remove the location listener running in background and also reduce Api calls.
Location csn then be changed in app with the button

If you want to save energy you should set location to manual only. This will remove the location listener running in background and also reduce Api calls. Location csn then be changed in app with the button

Okay, sure, I get how the app currently functions but why does the widget update every 30 minutes? What is the rationale behind this?
Shouldn't the widget respect update intervals set manually by the user?

App widgets have a fixed update parameter

 android:updatePeriodMillis

Blocking the http call after wakeup does not make sense.
A widget should not show wrong information.