Skip to content

Commit b97b4cf

Browse files
Clarify Android AppState background API docs
1 parent ab8b40d commit b97b4cf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/react-native/Libraries/AppState/AppState.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ import {NativeEventSubscription} from '../EventEmitter/RCTNativeAppEventEmitter'
2323
*
2424
* App States
2525
* active - The app is running in the foreground
26-
* background - The app is running in the background. The user is either in another app or on the home screen
26+
* background - The app is running in the background. The user is either in another app,
27+
* on the home screen, or [Android] on another Activity, including temporary system
28+
* activities such as autofill credential pickers (even if launched by your app or the system)
2729
* inactive [iOS] - This is a transition state that happens when the app launches, is asking for permissions or when a call or SMS message is received.
2830
* unknown [iOS] - Initial value until the current app state is determined
2931
* extension [iOS] - The app is running as an app extension

packages/react-native/Libraries/AppState/AppState.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import NativeAppState from './NativeAppState';
1919
* background - The app is running in the background. The user is either:
2020
* - in another app
2121
* - on the home screen
22-
* - @platform android - on another Activity (even if it was launched by your app)
22+
* - @platform android - on another Activity, including temporary system activities such
23+
* as autofill credential pickers (even if launched by your app or the system)
2324
* @platform ios - inactive - This is a state that occurs when transitioning between foreground & background, and during periods of inactivity such as entering the multitasking view, opening the Notification Center or in the event of an incoming call.
2425
*/
2526
export type AppStateStatus =

0 commit comments

Comments
 (0)