You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/08/23 18:24:44 UTC

[GitHub] [cordova-android] armandn opened a new issue, #1478: Apps (including HelloCordova) don't display correctly

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 android@11.0.0
   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: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek closed issue #1478: Apps (including HelloCordova) don't display correctly

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1478: Apps (including HelloCordova) don't display correctly
URL: https://github.com/apache/cordova-android/issues/1478


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1478: Apps (including HelloCordova) don't display correctly

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1478:
URL: https://github.com/apache/cordova-android/issues/1478#issuecomment-1256234794

   If that's the case I'll close this issue as it doesn't seem to be a cordova bug.
   
   If the issue comes back, feel free to comment on it and we can re-open the issue.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #1478: Apps (including HelloCordova) don't display correctly

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1478:
URL: https://github.com/apache/cordova-android/issues/1478#issuecomment-1255717534

   Is this device specific?
   
   I'm unable to reproduce this on an android 12 simulator. The simulator currently has webview version 91.0.4472.114.
   
   I'd check if the webview is fully up to date (should be about version ~105.0) and if not, then try updating it.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] armandn commented on issue #1478: Apps (including HelloCordova) don't display correctly

Posted by GitBox <gi...@apache.org>.
armandn commented on issue #1478:
URL: https://github.com/apache/cordova-android/issues/1478#issuecomment-1255831836

   Just yesterday my Samsung received an update and now the problem is gone.
   So I think it was a device bug, not webview-related (the webview was up to date).


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-android] joefaron commented on issue #1478: Apps (including HelloCordova) don't display correctly

Posted by GitBox <gi...@apache.org>.
joefaron commented on issue #1478:
URL: https://github.com/apache/cordova-android/issues/1478#issuecomment-1259942854

   Can confirm this happens with default code base on Samsung S20 FE.. good to know it's not cordova.  Wasted a day on this.. :\
   ![version](https://user-images.githubusercontent.com/702672/192615903-0549114c-524d-425b-a1b1-53cd37f08df7.jpg)
   


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org