Skip to content

[notification] active() returns an empty object on Android instead of list of active notifications #1897

Open
@micouy

Description

@micouy

I want to get a list of notifications displayed in the notification center on Android after I send some notifications.

In JS I invoke:

const checkNotifications = () => {
  active().then((notifications) => {
    console.log({ active: notifications });
  });

  pending().then((notifications) => {
    console.log({ pending: notifications });
  });
};

In the Console I can see:

{pending: []} // An empty array.
{active: {}} // An empty object.

Tauri version: 2.0.0
Android emulator version: Android 15.0, API 35

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions