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

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

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

-
Minimized

-
Inactive because Task View is open

-
Inactive in Tablet mode when Start Menu is open
(image coming)
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:
activeApp is running and has focus
App is running and does not have focus
backgroundApp is running and minimized
inactiveDoes not occur. Default scenarios where this would get triggered are Mobile-specific
Proposed Changes to Behavior on Desktop
activeApp is running and has focus
backgroundApp 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
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

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

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

Minimized

Inactive because Task View is open

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