How to configure Capacitor splash screens on iOS and Android

A splash screen is the first frame shown when your app starts. It can cover the time your app needs to load. Capacitor supports native splash screens on both iOS and Android.1
Install the splash screen plugin
Install the plugin with npm install @capacitor/splash-screen. Then run npx cap sync to sync your native projects.1, 2
In capacitor.config.ts, add plugins: { SplashScreen: { launchAutoHide: false, backgroundColor: '#ffffff', }, }. This turns off auto-hide so your app controls when the splash goes away.1
Asset requirements and generation tools
Install the asset tool with npm install @capacitor/assets --save-dev. Place your source images in the assets/ folder.3
Use icon-only.png, icon-foreground.png and icon-background.png for icons, plus splash.png and splash-dark.png for splash images. Icons must be at least 1024 by 1024 pixels. Splash images must be at least 2732 by 2732 pixels, in JPG or PNG format.3
Run npx capacitor-assets generate to generate assets for your native projects. Use --ios or --android to generate assets for just one platform.3
ImageGorilla creates iOS and Android icons and splash screens, but lacks some formats. SplashScreen Pro is a paid tool that works with Photoshop or Sketch.4
Icon Genie CLI scales and places icons in the right folders. In Capacitor mode, it also creates portrait and landscape Android splash images for each density.5
A single launch image can serve devices with different screen shapes. The image is cropped to fit, so keep key artwork in the centre.4
You can instead create a separate design for each supported size. This lets you use more of the space on each screen.4
With Icon Genie CLI, add --splashscreen-dark-color <hex> to generate dark splash variants. These include Android night resources and iOS images set for dark appearance.5
Dark variants use the --background-dark image when set, or the --background image otherwise. Without the dark colour option, no dark variants are made. Any dark variants made before are removed.5
Where native splash assets live
Capacitor keeps splash screens and icons in the native projects. You can replace the default images through the native tools or file system.4
On iOS, splash images live under App/App/Assets.xcassets/Splash.imageset. This image set includes Contents.json and three splash image files.5
Run npx cap open ios to open the iOS project in Xcode. Find the splash assets under App/App/Assets.xcassets. You can drag new images into the asset slots or replace the files directly.4
Android splash images live under android/app/src/main/res. The folders include drawable, portrait folders such as drawable-port-hdpi, and landscape folders such as drawable-land-hdpi.5
Run npx cap open android to open the Android project in Android Studio. The default splash image is under app > res > drawable > splash.4
Replace splash.png in each drawable folder with your own image. If your generator creates the same folder layout, you may be able to copy all files at once.4
Why Android 12 looks different
Android 12 and later use a system splash with a small icon on a coloured background. This replaces the full-screen launch image available on Android 11 and earlier.3
On Android 12 and later, splash.png drawables appear only when your app calls the plugin's show() method. The launch splash uses the system's icon-based screen instead.5
Capacitor 4 uses androidx.core:core-splashscreen to support the launch splash on Android 11 and earlier. That library can be turned off for those older versions.2
In android/app/src/main/res/values/styles.xml, change the parent of AppTheme.NoActionBarLaunch from Theme.SplashScreen to AppTheme.NoActionBar. The Android 12 system splash is part of the operating system.2
For the generated drawable images, FIT_XY would stretch the artwork. The Icon Genie setup uses androidScaleType set to CENTER_CROP, with the icon centred and background covering the screen.5
The plugin config supports androidScaleType: "CENTER_CROP". This scaling choice applies to drawable images, rather than changing the Android 12 system launch screen.2, 5
Control when the splash hides
Set launchAutoHide to false to keep the splash visible until your app hides it. For a fixed display time instead, set launchShowDuration in the Capacitor config.2
Import the plugin with import { SplashScreen } from '@capacitor/splash-screen';. Once the app shell has mounted and data is ready, call await SplashScreen.hide();.1
Wait until the app has rendered its first real screen before hiding the splash. That avoids a white flash between the splash and the app.1
An over-the-air update that is already downloaded can be applied before you hide the splash. The user then starts with the newest bundle, without a visible reload.1
Set a timeout so a slow update check or first data load cannot hold the splash forever. If either stalls, hide the splash and show the app anyway.1
For Capacitor 4 projects, @aparajita/capacitor-splash-screen is a replacement for the official plugin. It offers full control over native splash screens at launch and through code.6
Native app builds with KW Native
KW Native's done-for-you native app service is coming soon. The offer covers iOS and Android apps built from web apps, including Lovable and Bolt.7
KW Native offers to convert any responsive web app into native iOS and Android apps. Supported web tools include React and Next.js.7
KW Native's native app offer includes a custom icon and splash screen. It includes full icon sets for every device size.7
KW Native's offer includes submission under your own developer accounts. It also includes the GitHub repo, source code and a runbook.7
The offer has no monthly subscription or lock-in. You own the code, and the app is published under your account.7
Sources
Frequently asked questions
- How do you prevent a white screen flash when the splash screen hides?
- Set launchAutoHide to false, then wait until the app shell has mounted, data is ready and the first screen has rendered. Call SplashScreen.hide() at that point rather than letting the splash disappear before the app is ready.
- Can you use the splash screen duration to apply over-the-air updates?
- Yes, an update that is already downloaded can be applied before the splash hides, avoiding a visible reload. Set a timeout and show the app if the update check or first data load stalls.


