[Feature] Network allowlist for sync intervals & reachability check on network change
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- mobile-dev, networking
Hướng nghiên cứu
Read the referenced discussion #16993 first for the prior reasoning, then locate the code that schedules periodic background sync and auto-upload, and the component that observes connectivity changes. Both proposed behaviours hang off those two places: an allowlist of Wi-Fi SSIDs, unmetered connections or VPN interfaces checked before a scheduled sync, and a reachability probe plus queued sync when the active network changes. Done means a sync is skipped on non-allowlisted networks and a reachability check runs on network switch, with tests covering both paths.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
For self-hosted Nextcloud instances that are not exposed publicly—or that switch between local/LAN, VPN (such as WireGuard), and cellular/external networks—periodic background syncs can run when the server is unreachable, while network transitions may not immediately trigger a reachability check or sync.
Proposed Behavior
- Whitelisted / allowed networks for scheduled syncs:
- Allow users to restrict periodic sync / auto-upload workers to specific Wi-Fi SSIDs, unmetered connections, or active VPN interfaces.
- Skip scheduled sync attempts when on non-whitelisted networks instead of attempting unreachable connections.
- Network-switch reachability & sync trigger:
- When the active network changes (e.g., joining home Wi-Fi or connecting a VPN), refresh network/DNS state and run a lightweight reachability check against the configured server.
- Trigger or queue sync when the server becomes reachable on the new network.
Use Case / Motivation
Self-hosters running private/LAN or VPN-only Nextcloud instances often experience wasted background retries when away from trusted networks, or delays waiting for the next interval after connecting to home Wi-Fi or a VPN. Related discussions have come up in threads such as #16993.
Additional Context
- Android version: 16
- Nextcloud Android app version: 35.1.0
- Self-hosted setup (LAN / VPN / reverse proxy): self hosted and accessible on my LAN
- Ngôn ngữ chính
- Kotlin
- Star
- 5.7k
- Fork
- 2.1k
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 149
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/android
-
0. Needs triage enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nextcloud/android#18094 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
nextcloud/android#17845 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the appCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nextcloud/android#17837 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nextcloud/android#17533 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/android
Issue tương tự
-
accessibility agent-ready area:android bug fleet
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
level-98/mailcrane#412 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 2 ngày
-
help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
DojoCodingLabs/hermit#23 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
signalapp/Signal-Android#15148 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày