You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "yaojianyou (via GitHub)" <gi...@apache.org> on 2026/01/12 02:12:15 UTC

[I] Android app is forced to full screen mode with Android 16 (API level 36) [cordova]

yaojianyou opened a new issue, #575:
URL: https://github.com/apache/cordova/issues/575

   # Bug Report
   
   ## Problem
   after adjust android-compileSdkVersion and android-targetSdkVersion to 36 manually in existing cordova project, the app is always opened in full screen mode, status bar on the top and navigation button at the the bottom is overlayed
   ### What is expected to happen?
   works the same as before when android-compileSdkVersion and android-targetSdkVersion is configured to 35
   
   
   ### What does actually happen?
   the app is always opened in full screen mode, status bar on the top and navigation button at the the bottom is overlayed
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   according to https://developer.android.com/about/versions/16/behavior-changes-16, this issue is caused by edge to edge behavior changes in Android 16.
   from the official blog, cordova android 14.0.1 doesn't support android 16:
   <img width="539" height="262" alt="Image" src="https://github.com/user-attachments/assets/08b9e53a-8512-494c-9407-89d79167fa8b" />
   is it possible to fix this in next cordova version?
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   original configuration in config.xml of the cordova android project
   
   `<preference name="android-compileSdkVersion" value="35" />
   <preference name="android-minSdkVersion" value="23" />
   <preference name="android-targetSdkVersion" value="35" />`
   
   we changed to
   
   `<preference name="android-compileSdkVersion" value="36" />
   <preference name="android-minSdkVersion" value="24" />
   <preference name="android-targetSdkVersion" value="36" />`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   device: samsung Galaxy A53 5G
   android version: Android 16
   
   
   ### Version information
   <!-- 
   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.
   -->
   cordova android version: 14.0.1
   cordova CLI version: 13.0.0
   
   
   ## 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


Re: [I] Android app is forced to full screen mode with Android 16 (API level 36) [cordova]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #575:
URL: https://github.com/apache/cordova/issues/575#issuecomment-3736679700

   As described in that android release post, no that behavior is locked in once you target API 36+.
   
   On API 35, the behavior is applied but can be opted out, which cordova-android 14 does. That opt out flag is ignored on API 36.
   
   cordova-android@nightly might include some improvements but generally speaking apps will need to utilise the safe area insert css features to pad their content outside of unsafe areas like the area consumed by the statusbar.


-- 
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


Re: [I] Android app is forced to full screen mode with Android 16 (API level 36) [cordova]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #575: Android app is forced to full screen mode with Android 16 (API level 36)
URL: https://github.com/apache/cordova/issues/575


-- 
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


Re: [I] Android app is forced to full screen mode with Android 16 (API level 36) [cordova]

Posted by "yaojianyou (via GitHub)" <gi...@apache.org>.
yaojianyou commented on issue #575:
URL: https://github.com/apache/cordova/issues/575#issuecomment-3737175195

   @breautek thanks for your reply, so I think the best solution to unify this on android 15/16 is configured AndroidEdgeToEdge to true 
   and then handle safe area insert by the application itself
   <img width="1174" height="254" alt="Image" src="https://github.com/user-attachments/assets/a8735787-273d-40c1-be93-412e0823247a" />


-- 
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


Re: [I] Android app is forced to full screen mode with Android 16 (API level 36) [cordova]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #575:
URL: https://github.com/apache/cordova/issues/575#issuecomment-3738606783

   @yaojianyou Yup, you got it.
   
   Targeting API 36 manually via the preferences is not going to be recommended. I'm not sure what other breaking changes that may include. Cordova makes annual releases for the android platform which bumps the target SDK when it's ready to do so. The community is fairly good at doing this before API 36 targets becomes a had requirement.
   
   The full screen apps is the known biggest change that requires updates to how users render their applications, and you can prepare for that upcoming requirement by using the `AndroidEdgeToEdge` flag while remaining on API 35.
   
   I'm closing this issue because I don't think there is anything actionable here. Feel free to test `cordova-android@nightly` and report anything that you believe may be a bug.


-- 
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


Re: [I] Android app is forced to full screen mode with Android 16 (API level 36) [cordova]

Posted by "yaojianyou (via GitHub)" <gi...@apache.org>.
yaojianyou commented on issue #575:
URL: https://github.com/apache/cordova/issues/575#issuecomment-3742031754

   @breautek thanks for your explanation, it help us a lot:-)


-- 
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