premnirmal / StockTicker

A resizable widget that shows your financial portfolio on your android home screen
GNU General Public License v3.0
440 stars 116 forks source link

Too much data usage #337

Closed vhda closed 11 months ago

vhda commented 1 year ago

Describe the bug This app used my complete monthly allowance of data usage of ~2Gb in just 2 days. I noticed this yesterday when it reached 500 Mb and disabled background data usage for the app, but unfortunately that wasn't enough and today it used the remainder within 1h. I'm on 3.9.822. Not sure if this is a new option but today, after the fact, I've found a setting to only update every hour instead of every minute.

To Reproduce Disconnect from wifi.

Expected behavior App should not use so much data.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

ovz93br43v7 commented 1 year ago

Same problem here 5,69GB background data used:

premnirmal commented 1 year ago

Can you both update to the latest version?

Regardless, I am unsure why the data usage is so high. The only change is we're invoking https://finance.yahoo.com/ to fetch cookies, and that has a large response.

On my phone it is showing 40MB in the past month

vhda commented 1 year ago

In 821 the minimum update time was 15 min, which was decreased to 1 min in 822 and the new minimum became the default setting automatically. This app was also the top power consumer, which means it was constantly waking up, although I'm not sure this was related with the 1 min update. @ovz93br43v7 could you confirm the power consumption symptom on your end? @premnirmal can't test much since I now don't have anymore data available in my plan for the coming ~30 days...

premnirmal commented 1 year ago

@vhda

update time was 15 min, which was decreased to 1 min in 822 and the new minimum became the default setting automatically

That is not true, there is no 'new minimum'. It has always been 15min as default, and you change it in settings

vhda commented 1 year ago

That's odd. Updated back to 822 and I confirm there is no 1 min setting available. Could swear I saw it there yesterday! Sorry for sharing this incorrect information. BTW, 822 is still the latest version available in F-Droid, so I can't update further.

premnirmal commented 1 year ago

I'd recommend using the play store because updates are quicker. F-droid is not very good with updates, it is very slow on picking up changes.

The latest version today is 825 so f-droid is already 3 versions behind

ovz93br43v7 commented 1 year ago

@ovz93br43v7 could you confirm the power consumption symptom on your end?

In my case 43% power consumption caused by this app.

@premnirmal can't test much since I now don't have anymore data available in my plan for the coming ~30 days...

Same problem here data plan is empty.

Can you both update to the latest version?

I have to wait until F-Droid shows a new release.

premnirmal commented 1 year ago

It's a shame you have to wait for f-droid. You wouldn't have this problem with Google play, or if you just grab the APK from the releases section of the repo

vhda commented 1 year ago

823 is already available and I don't see the CPU usage at least. Now, until mid June I can't be sure because I don't have a data plan until then. The release notes of 823do mention something about "Updates to scheduling and reduce list of updates", do maybe that was the fix?

maxen0815 commented 1 year ago

Screenshot_20230530_115043_com huawei systemmanager

I see the same behaviour. Seems to start from my last update on 22.05. and now consumes gigabytes of data per day!

EDIT: Usually I'm using the latest Play Store version, since I'm on auto-update for all my apps. Today updated to Version 3.9.825 Huawei Mate 20 running on EMUI12

premnirmal commented 1 year ago

Which version are you on?

maxen0815 commented 1 year ago

Which version are you on?

Added in my original post

panro commented 1 year ago

I also had this issue, and noticed the widget was flickering a lot in the same day(s) it was happening.

It might be related to https://github.com/premnirmal/StockTicker/issues/333 which also mentions a flicker. In fact, I have a similiar situation as that issue's reporter: I also monitor multiple global markets, so I set the app to fetch data over a wide range of hours (from 9:15 to 23:15 on UTC+3).

premnirmal commented 11 months ago

You could update to the latest version instead of staying on old versions?