Skip to content

ios notif: Control the showing of notifications #1265

Open
@gnprice

Description

@gnprice

When a notification-message comes in from the server on iOS, we should have some of our own Dart code run, and have that code control the notification that gets shown in the UI.

That's something we already do on Android: see NotificationDisplayManager. Most of the code of that class is specific to Android's notification API, so some refactoring and/or renaming will be needed.

For this issue, there doesn't need to be any change to how the notifications look or behave. If the notifications appear exactly the same way they did before, that's success.

One immediate way we can make use of having this control is to do the equivalent of #1264: check if the account is still logged in, and if not then suppress the notification.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-iOSIssues specific to iOS, or requiring iOS-specific worka-notifications

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions