Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High data usage #62

Closed
julianfairfax opened this issue Sep 23, 2023 · 9 comments
Closed

High data usage #62

julianfairfax opened this issue Sep 23, 2023 · 9 comments
Assignees
Labels
enhancement New feature or request performance Performance of app is impacted
Milestone

Comments

@julianfairfax
Copy link

The app uses around 25MB of data per day. This is quite high for just fetching notifications, and it can be a problem if you don't have a high amount of data on your plan (25MB/day is 750MB per month...).

Other apps that uses polling for notifications, such as Signal and Element, use at most 5MB per day.

Is there a way to reduce NextcloudServices' data usage, aside from changing the polling frequency (for calls, even 10 seconds is already long)?

@0xf104a
Copy link
Owner

0xf104a commented Sep 23, 2023 via email

@0xf104a 0xf104a self-assigned this Sep 23, 2023
@0xf104a 0xf104a added enhancement New feature or request performance Performance of app is impacted labels Sep 23, 2023
@0xf104a 0xf104a added this to the 1.0-beta17 milestone Sep 23, 2023
@julianfairfax
Copy link
Author

In addition to this, it uses 10-15% of your battery, which is also absolutely ridiculous.

I have set the polling time to 5 minutes (which was hard as well - #14), but that doesn't work if you use the app as an instant messenger.

@0xf104a
Copy link
Owner

0xf104a commented Oct 23, 2023

@julianfairfax thankyou for addition. Could you please tell if you use Nextcloud single sign-on(authentication via app) or enter your login and token(password) in app?

@0xf104a 0xf104a added the question Further information is requested label Oct 23, 2023
@julianfairfax
Copy link
Author

@julianfairfax thankyou for addition. Could you please tell if you use Nextcloud single sign-on(authentication via app) or enter your login and token(password) in app?

I have used both. I don't think it made any difference. Only, when using single sign-on, the Nextcloud app shows as the one using all the data and battery.

@0xf104a 0xf104a added test The issue is resolved, a testing is required and removed question Further information is requested labels Oct 26, 2023
@julianfairfax
Copy link
Author

I see you marked this as a test. I'm testing it now.

@0xf104a
Copy link
Owner

0xf104a commented Oct 26, 2023

Thankyou for assisting me with testing :)
Just to note: the changes I have implemented are aimed to reduce data-usage, though I am not really sure that they would reduce battery usage(probably we need a separate issue for a battery usage as reducing it would likely require quite extensive profiling)

@julianfairfax
Copy link
Author

Thankyou for assisting me with testing :) Just to note: the changes I have implemented are aimed to reduce data-usage, though I am not really sure that they would reduce battery usage(probably we need a separate issue for a battery usage as reducing it would likely require quite extensive profiling)

I will report to you the results of my testing. I'm using then, by the way, the direct login in the app, to differentiate it from the Nextcloud app's data and battery usage.

@julianfairfax
Copy link
Author

It seems your changes worked to reduce the data usage. It now uses as much as You Have Mail - but only if you set the polling time to 5 minutes.

I don't really you think you can do anything more about data usage or battery usage, because polling every 10 seconds is just going to use resources.

I suppose this is only solvable if Nextcloud adds a websocket. And, if you need instant notifications, you'll probably just have to use NextPush.

@0xf104a
Copy link
Owner

0xf104a commented Nov 4, 2023

Thank you for testing my fix! As per battery usage I have opened issue #67, so I would try investigate and reduce possible sources of battery usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance of app is impacted
Projects
None yet
Development

No branches or pull requests

2 participants