-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] AppState 'inactive' not triggered on Android #14537
Comments
+1 RN 0.44.0, 0.45.1 |
+1 |
+1 RN 0.45.1 |
+1 |
+1 RN 0.42.0 |
+1. The inactive state is not sent when receiving a phone call aswell. Edit: Have a look at AppStateModule. It seems that there are only three states possible: |
@JLWalsh, according to https://stackoverflow.com/a/41009169/3102305, there seems to be an Hope that helps. Our issue is, that we want to re-render the main component for privacy reasons as the screenshot of the app that is used in the task list should only show a "covered" version, not the apps last screen. |
just for reference: [AppState] App state never becomes "inactive" |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
I'm not aware that the issue is solved. It would be required to take action when the app goes into background, e.g. covering the app's screen for privacy reasons, so that the system's screenshot in the app-switch does not show the content of the app, but it's lock screen. |
Did you find a solution for the described case? @martin-rueegg ? We need it for the same scenario. Rendering a view before the Snapshot for Task Switcher is made (Android). On iOS it works just fine. |
I also discover that when detecting NFC, it will also trigger |
+1 |
Description
When listening to an AppState change,
inactive
is never triggered on Android, onlybackground
.Reproduction Steps
change
listener on AppState.background
is logged, but neverinactive
Sample Code
Additional Information
The text was updated successfully, but these errors were encountered: