Skip to content

Sync handling when offline #41

@kkalass

Description

@kkalass

Affected Package

locorda_core

Problem / Motivation

While the framework is working fully offline, a sync of course requires online state. Currently, a requested sync is triggered immediately, regardless of the current online state.

Proposed Solution

When the user does a manual sync and it fails because the device is offline, the user should be informed properly.
But automatically triggered syncs should be skipped and then executed when the device comes only.
We should also evaluate if sync should always be executed when switching from offline to online (and the last sync was done more than x minutes ago).

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions