Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
micouy opened this issue Oct 7, 2024 · 0 comments
Labels
bug Something isn't working platform: android Android specific issues plugin: notification

Comments

@micouy
Copy link

micouy commented Oct 7, 2024

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

@FabianLars FabianLars added bug Something isn't working platform: android Android specific issues plugin: notification labels Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: android Android specific issues plugin: notification
Projects
None yet
Development

No branches or pull requests

2 participants