-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
App is restarted on split-screen #799
Comments
Thank you for filling out completely, and it's awesome you even provided a possible solution. We will welcome a PR, or if you prefer I can test this out and do a PR. |
Edit: Opted not to include the ability to disable resizing altogether as it is quite more involved including adding android specific code to |
…size fixed lint issues
Bug Report
Problem
What is expected to happen?
App keeps running in split screen, just resized.
What does actually happen?
Activity is restarted.
Information
Command or Code
Press and hold the "square" button on any modern Android device to trigger split screen mode. Notice how the Cordova app is restarted.
This is fixed if I add the following to my
config.xml
:This is the default list of
configChanges
with|smallestScreenSize|screenLayout|uiMode
appended. See docs: https://developer.android.com/guide/topics/manifest/activity-element#configI propose that at least
smallestScreenSize|screenLayout
are added to the defaultAndroidManifest.xml
.uiMode
is not necessary to fix this issue, but should maybe be in the default list as well.Environment, Platform, Device
Android 7.1.2
Version information
Cordova 9.0.0
Cordova Android 8.0.0
Checklist
The text was updated successfully, but these errors were encountered: