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(), pending(), cancel() throw Command not found on macOS #1898

Open
micouy opened this issue Oct 7, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation plugin: notification

Comments

@micouy
Copy link

micouy commented Oct 7, 2024

Exact error messages:

Command cancel not found
Command get_active not found
Command get_pending not found

My code:

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

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

const cancelLast = () => {
  cancel([notifications[notifications.length - 1].id]).then(
    (notifications) => {
      console.log({ afterRemoving: notifications });
    }
  );
};

I didn't change the default permissions.

Tauri version: 2.0.0
macOS version: Sonoma 14.5

@FabianLars FabianLars added documentation Improvements or additions to documentation plugin: notification labels Oct 13, 2024
@FabianLars
Copy link
Member

Basically same as #1903 - those apis are mobile-only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation plugin: notification
Projects
None yet
Development

No branches or pull requests

2 participants