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

Changing Polling Interval #379

Open
incognito1234 opened this issue Oct 2, 2024 · 1 comment
Open

Changing Polling Interval #379

incognito1234 opened this issue Oct 2, 2024 · 1 comment
Labels
a:feature New feature or request

Comments

@incognito1234
Copy link

Hello,

I’ve noticed that messages are sent from the application to the server approximately every 20 seconds. This suggests that messages are being polled at this interval.

Would it be possible to increase this polling interval to help minimize battery consumption?

Thank you!

@jmattheis
Copy link
Member

There is no polling in the app, what you are likely seeing are the websocket ping+pongs and/or http keepalive. On server side these are configurable via

https://github.com/gotify/server/blob/58084c8dea5790796e34540b68d70d4be57395d3/config.example.yml#L4-L5
and
https://github.com/gotify/server/blob/58084c8dea5790796e34540b68d70d4be57395d3/config.example.yml#L41-L42

The android app currently has a one minute ping interval https://github.com/gotify/android/blob/master/app/src/main/kotlin/com/github/gotify/service/WebSocketConnection.kt#L48

We could probably add a setting for this in the android app.

@jmattheis jmattheis added the a:feature New feature or request label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature New feature or request
Development

No branches or pull requests

2 participants