#Can't remove active notifications (v2)

2 messages · Page 1 of 1 (latest)

agile nimbus
#

I have the following frontend code:

    import { onMount } from "svelte";
    import { listen } from '@tauri-apps/api/event';
    import { sendNotification, removeAllActive } from "@tauri-apps/plugin-notification";

    let state = {
        // ...
    };
    let infoState = {
        // ...
    };

    $: state.elements?.textArea?.focus();
    listen(`shortcut`, (e) => {
        if (!e.payload == `CtrlShiftSpace`) return;
        if (!state.elements.textArea?.isConnected) return;

        sendNotification({
            title: `Test`,
            body: `Testbody :)`,
        });

        setTimeout(removeAllActive, 2000);
    });

I keep getting the error "Command remove_active not found" , which seems to have to be an internal issue I believe, since I do correctly have it allowed in my permissions json.

frigid shard
#

In case this is still an issue, can you also post the output of tauri info please?