Skip to content

Expose the push notification settings #1959

@giomfo

Description

@giomfo

The RustSDK defines the push rules in the ruma-common crate, but does not currently expose them.

In order to allow the user to view and update the notification settings, we need to expose these rules in the ffi layer of the SDK.

We have two options:

  • Expose the Ruleset (the internal type that contains the push rules) directly, but this means exposing also all the internal types and associated methods used by the SDK to store, get, create and delete a push rule.
  • Expose only a set of methods and enumerations to get and update push rules.

The second option seems to be the best, as it will allow the management of notification settings to be shared between iOS and Android.

A minimal set of features to expose should be:

Also, the SDK should be able to notify the application when push rules are updated after a sync response.

  • Update the application on push rules changes

Out of scope

  • a method to manage the keyword push rules (one global content rule per keyword)

Metadata

Metadata

Assignees

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