Skip to content

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

@RunWang123

Description

@RunWang123

Our performance monitoring system detected some CPU and network usage could be improved for this app. This seems to be happening when network requests fail, causing endless retry attempts.. Which could be either caused by using some network blocker app or a server end failure.

Although I think there already be some retry or backoff mechanisms in FeedUpdateTask.java, the repeated sync attempts while the server is unreachable can lead to unnecessary battery consumption.

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

DAVx⁵ solution for handling VPN-related sync issues

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions