Skip to content

Dedicated Background Fetch function #4420

@Simon-Laux

Description

@Simon-Laux

What? Why?

A special function that is used for background fetch. Because the iOS background fetch still fails sometimes, this is the idea of making a minimal function that does only the essential background work instead of fully starting IO (which might do stuff we don't need).

Proposed Function

  • Needs stopped IO
  • connects an receives messages, then sends pending messages
    • does not even connect to smtp if there are no pending messages to send
    • does no housekeeping
      • (maybe later) just delete ephameral messages, but nothing expensive like vaccum.
        • even then if there is no extra time don't do housekeeping

How should this help?

It does only what it is supposed to in the background an thus reduces the surface in which bugs can appear.

History of the Idea

@link2xt, @hpk42 and me discussed this idea when we were thinking about how to solve iOS notification problems.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions