plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

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

Open micouy opened this issue 1 year ago • 0 comments

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

micouy avatar Oct 07 '24 14:10 micouy