home-assistant / home-assistant/android
Battery Optimization When App Sync is Blocked by VPN, Firewall or caused by Server-End Failure
- 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
Assessment
This issue has not been assessed yet.