Skip to content

Clarify Android AppState background for autofill credential pickers#5079

Merged
Simek merged 2 commits into
facebook:mainfrom
federicobartoli:clarify-android-appstate-background
May 12, 2026
Merged

Clarify Android AppState background for autofill credential pickers#5079
Simek merged 2 commits into
facebook:mainfrom
federicobartoli:clarify-android-appstate-background

Conversation

@federicobartoli
Copy link
Copy Markdown
Contributor

Summary

Clarifies that Android AppState background can be emitted when another Activity takes focus, including temporary system activities such as autofill credential pickers.

Context

The AppState docs already mention that Android may report background when the user is on another Activity. This adds a concrete system-flow example where that distinction matters in practice, without changing the documented API behavior.

Related: facebook/react-native#36420

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

@federicobartoli is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

@meta-cla
Copy link
Copy Markdown

meta-cla Bot commented May 12, 2026

Hi @federicobartoli!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 58b6429
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/6a02f3522848c9000881b1ad
😎 Deploy Preview https://deploy-preview-5079--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Simek
Copy link
Copy Markdown
Collaborator

Simek commented May 12, 2026

Hey @federicobartoli, thanks for the update! 👍

Can you also backport he change into versioned docs?

Also, to merge your contribution in we will require signing Meta CLA.

@meta-cla meta-cla Bot added the CLA Signed label May 12, 2026
@federicobartoli
Copy link
Copy Markdown
Contributor Author

Hey @federicobartoli, thanks for the update! 👍

Can you also backport he change into versioned docs?

Also, to merge your contribution in we will require signing Meta CLA.

Done, thanks! I backported the clarification to the versioned docs as requested.

I have also completed the Meta CLA. It may just need some time for the check to refresh.

Copy link
Copy Markdown
Collaborator

@Simek Simek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, welcome to the community! 🙂

@Simek Simek merged commit 8e7b74a into facebook:main May 12, 2026
6 of 7 checks passed
meta-codesync Bot pushed a commit to facebook/react-native that referenced this pull request May 12, 2026
Summary:
Syncs the in-package AppState API documentation with the Android AppState clarification added in facebook/react-native-website#5079.

Android AppState `background` was already documented as including another `Activity`. This clarifies that temporary system activities, such as autofill credential pickers, are included too.

## Changelog:

[GENERAL] [CHANGED] - Clarify Android AppState background API documentation.

Pull Request resolved: #56779

Test Plan:
Documentation-only change.

Verified with:
- `git diff --check`
- `prettier --check packages/react-native/Libraries/AppState/AppState.js packages/react-native/Libraries/AppState/AppState.d.ts`

Reviewed By: cortinico

Differential Revision: D104810583

Pulled By: huntie

fbshipit-source-id: 17d2ec312c65c91b8086bd382f733f3cceb4da8a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants