armandn opened a new issue, #1478:
URL: https://github.com/apache/cordova-android/issues/1478

   # Bug Report
   
   This is something that started happening only recently. I tested on two 
Samsung phones, an S20 Ultra and an A52, both running Android 12.
   
   I created a test app with
   ```
   cordova create test
   cd test
   cordova platform add [email protected]
   cordova build android
   ```
   
   Running the app on the phone and debugging it with Chrome Inspect Devices 
reveals the following: sometimes the app is smaller than the screen as seen 
below:
   
   
![test](https://user-images.githubusercontent.com/15320153/186230123-1a27646b-5689-4c46-9abb-8251c379739a.jpg)
   
   In other cases (apparently randomly), the app does fill the screen, but it's 
actually scaled (it's more difficult to observe).
   
   From Chrome Dev Tools we can see that the app size is different than the 
screen size:
   ```
   screen.availWidth
   412
   
   screen.availHeight
   915
   
   document.body.offsetWidth
   309
   
   document.body.offsetHeight
   629
   ```
   
   Please note this is NOT simply an issue with the HTML `viewport` meta tag.
   
   ## Problem
   
   ### What is expected to happen?
   
   The application should use the whole available screen correctly.
   
   
   ### What does actually happen?
   
   The application is sometimes smaller than the screen or, when it is the 
screen size, is actually zoomed.
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Tested on two Samsung phones running Android 12.
   
   ### Version information
   
   Cordova Android  10 & 11.
   
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to