You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android 9: The aspect ratio of the splashscreen is not kept (despite "androidScaleType": "CENTER_CROP" in SplashScreen plugin configuration)
On Android 15: The splashscreen is based on the icon: ok
I can keep the aspect ratio on Android 9 by changing \android\app\src\main\res\values\styles.xml from
<style name="AppTheme.NoActionBarLaunch" parent="AppTheme.NoActionBar">
<item name="android:windowIsTranslucent">true</item> // (when this line is not present a white screen appears before the splashscreen on android 9)
</style>
This solves the problem on Android 9 but on Android 15 no splashscreen appears anymore
Expected Behavior
I would like to see a good behavior on all android versions
on Android 9: my splashscreen with a good aspect ratio, or a splashscreen based on the icon (core-splashscreen library? but how to do?)
on Android 15: the splashscreen is based on the icon
As I am not an Android developper (this is way I use capacitor) I do not understand anything of android environement. Please explain how to do. The documentation is insufficient
Thanks
Project Reproduction
none
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Capacitor Version
Latest Dependencies:
@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
Other API Details
Platforms Affected
Current Behavior
On Android 9: The aspect ratio of the splashscreen is not kept (despite "androidScaleType": "CENTER_CROP" in SplashScreen plugin configuration)
On Android 15: The splashscreen is based on the icon: ok
I can keep the aspect ratio on Android 9 by changing \android\app\src\main\res\values\styles.xml from
to
This solves the problem on Android 9 but on Android 15 no splashscreen appears anymore
Expected Behavior
I would like to see a good behavior on all android versions
on Android 9: my splashscreen with a good aspect ratio, or a splashscreen based on the icon (core-splashscreen library? but how to do?)
on Android 15: the splashscreen is based on the icon
As I am not an Android developper (this is way I use capacitor) I do not understand anything of android environement. Please explain how to do. The documentation is insufficient
Thanks
Project Reproduction
none
Additional Information
No response
The text was updated successfully, but these errors were encountered: