home-assistant / home-assistant/android

Battery Optimization When App Sync is Blocked by VPN, Firewall or caused by Server-End Failure

Open
#5,543 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

Would it be possible to add a customized, app-level server reachability check before trying synchronization? This could help prevent redundant sync attempts when the app is effectively blocked by the VPN.

Here are some references that may help:

[StackOverflow: Server reachability check](https://stackoverflow.com/a/4009133/18154447)
[StackOverflow: Server reachability check 2](https://stackoverflow.com/questions/9570237/android-check-internet-connection)
[DAVx⁵ solution for handling VPN-related sync issues](https://github.com/bitfireAT/davx5-ose/commit/318939e970297e9d491b82cbe5238adea82fd969)

Related Issues:
https://github.com/home-assistant/android/issues/3464
https://github.com/home-assistant/android/issues/3636

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.