Skip to content

Notifications#599

Open
hukasu wants to merge 13 commits intodecentraland:mainfrom
hukasu:notifications
Open

Notifications#599
hukasu wants to merge 13 commits intodecentraland:mainfrom
hukasu:notifications

Conversation

@hukasu
Copy link
Copy Markdown
Collaborator

@hukasu hukasu commented Feb 11, 2026

Closes #600

example of usage

fn spam(mut commands: Commands) {
    commands.send_event(PushNotification {
        title: "Spam".to_owned(),
        #[cfg(not(target_arch = "wasm32"))]
        icon: Some("file://home/hukasu/.local/share/bevyexplorer/cache/Sk2HvA9W6QYIHGSOj5YBuyutJbOgNGgWg9VPpoWmpK0".to_owned()),
        #[cfg(target_arch = "wasm32")]
        icon: Some("favicon/favicon-96x96.png".to_owned()),
        body: Some("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eleifend auctor velit. Curabitur ultricies molestie finibus. Praesent nec imperdiet velit. Morbi vulputate tellus tellus, eget blandit mauris finibus a. Praesent commodo erat et metus finibus, et cursus turpis varius. Donec non nibh vel dolor pharetra ultrices. Aenean eget massa risus. Aliquam erat volutpat.".to_owned()),
        timeout: 4.,
    });
}
image

@hukasu
Copy link
Copy Markdown
Collaborator Author

hukasu commented Feb 11, 2026

for testing i have the example code added with

app.add_systems(Update, spam.run_if(on_timer(Duration::from_secs(8))));

@hukasu hukasu marked this pull request as ready for review February 11, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notifications work when tab is in background

1 participant