Skip to content

Server-driven updates for Widgets #52

@V3RON

Description

@V3RON

Feature Description

Widgets should support server-driven updates, not via push notifications but through HTTP requests sent to a Node.js service running Voltra. It should be possible to configure Voltra to include additional data in these requests, such as access tokens for identifying the user on the server.

Problem Statement

In some cases, we want our widgets to update themselves regularly - say, every day. We don't want to ask users to open the app daily just to trigger an update. There should be a way for widgets to pull updates from a remote service automatically.

Proposed Solution

We can reuse Voltra's existing SSR capabilities. What's missing is the client-side part. On iOS, the TimelineProvider backing widgets can send HTTP requests, so this part should be straightforward. Android is trickier, as we need to spawn a background service, but it should be doable.

Alternatives Considered

No response

Current Library Version

v1.1.2

Implementation

  • I would be willing to submit a pull request for this feature

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions