Skip to content

SPA closing itself #1364

Open

Description

@Nemanya8

Jollity needs a way to close itself once a game is over. When the game ends we send the player to their Humanity card in Pocket, and after that there’s no reason for the Jollity tab to stay open.

Activity

  1. added theissue type on Oct 9, 2026
  2. peetzweg commented on Oct 15, 2026

    @peetzweg
    Member

    I would rate the priority higher here. The issue is that people revisiting jollity after the game will inherit the previously opened SPA state. This is not good for back to back games.

    If we can't get this anytime soon we should implement a self reset of the app itself once the game is over. cc @Nemanya8

  3. alexander-lisovyk commented on Oct 16, 2026

    @alexander-lisovyk
    Contributor

    @peetzweg I think products cannot close themselves right now, there is no api in the core, needs to be provided first and then can bring it in the hosts.

    about inheriting the previous SPA state: maybe it's about Androidd only? iOS reloads root on most reopens. So Jollity can just call location.reload() when game over for now so it will work on both hosts - tab will stay with fresh state.

  4. duewarn commented on Nov 11, 2026

    @duewarn
    Contributor

    We do not think that the ability to close automatically is the right feature. The lifecycle should be defined by user agents and user interactions with them, so as not to confuse the user when switching between SPAs and other modalities.

  5. added
    R3+Can be done for R3 or further
    and removed on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    R3+Can be done for R3 or furtherspa:humanityHumanity SPAspa:jollityJollity SPAspa:seitySeity SPA work (user ID)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions