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

Send data automatically (but only on WiFi) #356

Open
1 task done
skinkie opened this issue Dec 16, 2024 · 2 comments
Open
1 task done

Send data automatically (but only on WiFi) #356

skinkie opened this issue Dec 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@skinkie
Copy link
Contributor

skinkie commented Dec 16, 2024

Description

The option is not very clear. But I would prefer that data is only sent automatically when connected to a WiFi network.

Suggested implementation

Either add a comment how this function works, or implement an extra option "when".

Additional information

No response

New request

  • I have checked that a similar feature hasn't been requested yet
@skinkie skinkie added the enhancement New feature or request label Dec 16, 2024
@mjaakko
Copy link
Owner

mjaakko commented Jan 8, 2025

WorkManager is used for sending the reports and it doesn't support running the worker only when Wi-Fi is connected. There is support for requiring an unmetered network connection (which in practice is usually a Wi-Fi network): https://developer.android.com/reference/androidx/work/NetworkType#UNMETERED

Would this work for your use case?

@skinkie
Copy link
Contributor Author

skinkie commented Jan 8, 2025

Unmetered is indeed 'good enough'.

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

No branches or pull requests

2 participants