-
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: app faulty on re-opens after minimising with hardware "back" (affects screen, keyboard, status bar, deep links) #28608
Comments
|
I've found a series of issues that describe this bug that were locked by a bot. They helpfully give a way to reproduce the bug:
|
Something else I've noted is: on Android deep links don't work when app is already open in the background from pressing "backing" out of the app (pressing home or force stopping is fine). It seems like the state that the app is put into when you press the Android back button to minimise you is pretty buggy? Is there any documentation on how these states cometogehter? |
I'm not sure it'll help, but try adding this to your @Override
public void invokeDefaultOnBackPressed() {
moveTaskToBack(true);
} From Android docs for
Perhaps the activity "finishing" is what is causing some of these issues for you. |
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Sometimes when re-opening the app, the status bar becomes black and opaque at the top, and the keyboard behaviour with regards to content on-screen stops working. It is as if they've both been set to their defaults. This persists until the app is swiped closed and re-opened.
To reproduce (thanks to @alikazemkhanloo):
"react-native": "0.61.5"
- observed on physical device, does not occur on emulator (may be dependent on Android version).My AndroidManifest.xml setting is
android:windowSoftInputMode="adjustResize"
I have tried both using methods and props on the StatusBar component to style it - none work to prevent this issue:
<StatusBar barStyle="light-content" backgroundColor='rgba(0,0,0,0)' translucent/>
Similarly: on Android, deep links don't work when the app is already open in the background from pressing "back" out of the app. Minimising/closing the app by pressing home or force stopping is fine and deep links will work from this state.
The text was updated successfully, but these errors were encountered: