Splash screen is stretched in android ionic 6 Capacitor 4

Discussão em 'Angular' iniciado por Dekhas, Junho 26, 2025.

  1. Dekhas

    Dekhas Guest

    I am trying to display a splash screen in ionic framework, I generated the resources with cordova-res, but when I run the app the splash screen is stretched, I tried everything but nothing works

    Capacitor.config

    SplashScreen: {
    launchShowDuration: 3000,
    launchAutoHide: true,
    backgroundColor: '#ffffffff',
    androidSplashResourceName: 'splash',
    androidScaleType: 'CENTER_CROP',
    showSpinner: false,
    splashFullScreen: false,
    splashImmersive: false,
    }


    Style.xml

    <style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
    <item name="android:background">@drawable/splash</item>
    </style>


    I have searched the ionic forum but they never talk about a solution

    Continue reading...

Compartilhe esta Página