• Notify when another player plays a card
    CI / Build and push docker image (push) Successful in 1m42s

    woggioni released this 2026-10-15 15:46:00 +02:00 | 1 commits to main since this release

    Add an opt-in bell to the game HUD: the first click asks for the
    browser's notification permission, and the choice is remembered per
    device. A play by any other seat then raises a desktop notification
    with the player's name, the card and the next player, while the page
    is in the background and the viewer is actually seated in the game.

    Detect the newest play across the game families: scopone and scopa
    report it in last_move, while briscola and briscola chiamata only
    expose the trick, which mid-trick or once completed ends with the
    card just played. The first snapshot after every (re)connection is a
    resync baseline, so reconnects and the initial load never replay old
    moves; so are the viewer's own plays and the server's auto-plays.

    Deliver through the service worker registration (installed PWAs on
    Android reject page-context notifications), falling back to a page
    notification when no worker is active, under a per-game tag that
    replaces the previous move. sw.js now focuses the game window when a
    notification is clicked.

    Downloads