Skip to content

[Module] AppState - Behavior Completion #2144

@kikisaints

Description

@kikisaints

AppState is the API in ReactNative that detects whether or not the app has focus (is in Foreground vs Background).

Today's Behavior on Desktop:

  • active
    App is running and has focus
    App is running and does not have focus
  • background
    App is running and minimized
  • inactive
    Does not occur. Default scenarios where this would get triggered are Mobile-specific

Proposed Changes to Behavior on Desktop

  • active
    App is running and has focus
  • background
    App is running and minimized
    App is running and does not have focus
    App is running but alt-tab is being preformed
  • inactive
    *Occurs when Task View is opened
    *Start menu is opened in Tablet mode

*Need to review ones with respective team and key scenario owners.

Reasoning

There are essentially 6 different states that an app can be when on desktop as opposed to mobile's 4:

(RBG is the app who's AppState we are concerned about in these examples)

  • Active
    image

  • Not minimized, but does not have focus (another window does)
    image

  • Not minimized, but does not have focus (alt-tab menu does)
    image

  • Minimized
    image

  • Inactive because Task View is open
    image

  • Inactive in Tablet mode when Start Menu is open
    (image coming)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions