/capacitor-features:capacitor-splash-screenfrom capacitor-features
Configures and debugs Capacitor launch splash screens: auto-hide timing, Android 12+ SplashScreen API themes, iOS storyboards, and asset regeneration.
Ships in capacitor-features. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
TRIGGER when:
npx capacitor-assets generate)SceneDelegate.swift (8.5+)Do not use:
safe-area-handlingcapacitor-uiscene-migrationcapacitor-performancecapacitor-app-store| Phase | iOS | Android 12+ | Android <= 11 |
|---|---|---|---|
| OS launch screen (before any code) | LaunchScreen.storyboard (UILaunchStoryboardName), image Splash in Assets.xcassets/Splash.imageset | System SplashScreen API: theme AppTheme.NoActionBarLaunch with Theme.SplashScreen parent - icon + background color only | androidx.core:core-splashscreen compat, or android:background drawable |
Plugin splash (until hide()) | Plugin overlay on the bridge view | Same system splash held via the API | Plugin ImageView / Dialog (androidSplashResourceName, androidScaleType) |
Most androidScaleType, showSpinner, splashFullScreen, layoutName, useDialog, backgroundColor options do not apply on Android 12+ launch (the OS draws it). They only affect show() and pre-12 devices.
capacitor.config.* plugins.SplashScreen, android/app/src/main/res/values/styles.xml, android/variables.gradle (coreSplashScreenVersion), ios/App/App/Info.plist, ios/App/App/SceneDelegate.swift, assets/ or resources/ folder.npm install @capacitor/splash-screen && npx cap sync.assets/ (icon-only.png, icon-foreground.png, icon-background.png, splash.png, splash-dark.png; splash >= 2732x2732, icons >= 1024x1024), then npm install -D @capacitor/assets && npx capacitor-assets generate (--ios, --android, --pwa to scope). Keep the logo inside the center ~1/3 so Android 12+ circular masking does not crop it.launchAutoHide: false and call hide() after the first meaningful render (below).// capacitor.config.ts
plugins: {
SplashScreen: {
launchAutoHide: false, // hide from JS when the UI is ready
launchFadeOutDuration: 200, // explicit: Capacitor 9 default on Android is 0
backgroundColor: '#ffffff', // match the first web paint to avoid a flash
},
},
import { SplashScreen } from '@capacitor/splash-screen';
// after the router's first view has rendered (e.g. in a root component's mounted/useEffect)
await SplashScreen.hide(); // optional: { fadeOutDuration: 300 }
Traps:
launchAutoHide: false, a JS crash before hide() leaves the app stuck on the splash. Add a fallback: setTimeout(() => SplashScreen.hide(), 8000).launchShowDuration). Long fixed durations hurt perceived startup; hide on readiness instead.<body> / root background to the splash background color, or the gap between native splash and first web paint flashes white (dark mode: black).capgo-live-updates): call notifyAppReady() independently of hide(); do not gate one on the other.| Version | Change |
|---|---|
| 4 | Android uses the Android 12 SplashScreen API + compat library |
| 7 | SplashScreenShowOptions / SplashScreenHideOptions types removed -> ShowOptions / HideOptions |
| 8 | coreSplashScreenVersion = '1.2.0' |
| 8.5 (iOS) | UIScene template creates the window and CAPBridgeViewController in SceneDelegate; Main.storyboard no longer supplies the root view controller. LaunchScreen.storyboard is unchanged and still required. |
| 9 | Android launchFadeOutDuration default 200 -> 0 (the old default could block UI changes right after hide()). Set 200 explicitly to keep the fade. |
UILaunchStoryboardName = LaunchScreen in Info.plist. Apple requires a launch storyboard; deleting it causes letterboxed / wrong-size rendering.Main.storyboard expecting them to show: the 8.5 SceneDelegate sets window.rootViewController = CAPBridgeViewController() in code. Put a custom CAPBridgeViewController subclass there instead.window = UIWindow(windowScene:) + makeKeyAndVisible()) or UISceneDelegateClassName points to a missing class. Fix with capacitor-uiscene-migration.capacitor-ios-resizability if present).npx cap sync then a clean native build (Product > Clean Build Folder in Xcode; ./gradlew clean in android/).grep -rn "launchFadeOutDuration\|launchAutoHide" capacitor.config.*
grep -n "Theme.SplashScreen\|postSplashScreenTheme" android/app/src/main/res/values/styles.xml
/usr/libexec/PlistBuddy -c "Print :UILaunchStoryboardName" ios/App/App/Info.plist
| Symptom / message | Cause | Fix |
|---|---|---|
| Splash stays forever | launchAutoHide: false and hide() never runs (JS error, wrong import, called before plugin load) | Check web console; add timeout fallback |
| Fade-out gone after Capacitor 9 upgrade (Android) | Default launchFadeOutDuration is now 0 | Set launchFadeOutDuration: 200 |
UI changes right after hide() not visible (Android, pre-9) | 200 ms fade blocked updates | Set launchFadeOutDuration: 0 |
| Android 12+ shows small icon, image cropped | OS splash is icon-only by design | Provide adaptive icon-safe artwork; tune windowSplashScreenAnimatedIcon |
| Android 12/12L no splash from third-party launchers or Android Studio | Platform bug fixed in Android 13 | Test from the stock launcher |
error: resource drawable/splash not found | androidSplashResourceName or styles reference a missing drawable | Regenerate assets or fix the name in both config and styles.xml |
AAPT: error: style attribute 'attr/windowSplashScreenAnimatedIcon' not found | core-splashscreen dependency missing | Restore implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion" |
| iOS black screen after 8.5 scene adoption | No window created in SceneDelegate | See iOS notes / capacitor-uiscene-migration |
| Old splash still shows on iOS | Launch screen cache | Delete app, reboot device if needed, reinstall |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
capacitor, splash-screen, launch-screen, android-12, ios-storyboard, app-icons
6 skills in this plugin
/capacitor-app-intentsExposes Capacitor app features to Siri, Shortcuts, Spotlight, the Action button, Apple Intelligence, widgets and controls with native App Intents in ios/App/App, bridged to the web layer. Covers open-app intents routed through Universal Links / `OpenURLIntent` and @capacitor/app `appUrlOpen`, or a local plugin with a pending-route store; headless background intents; App Group / Preferences data sharing; AppShortcutsProvider phrases, AppEntity queries; iOS 26/27 APIs (`supportedModes` replacing `openAppWhenRun`, `continueInForeground`, `LongRunningIntent`, AppIntentsTesting) gated for Capacitor 8 (iOS 15) and 9 (iOS 16). Covers file placement, target membership, and UIScene (Capacitor 8.5+) URL delivery. Use for "add Siri shortcut", "Shortcuts action", "App Shortcuts", "control widget", or an intent that opens the app but the web view never navigates. Do not use for deep link setup (capacitor-deep-linking), push (capacitor-push-notifications), or Android shortcuts./capacitor-deep-linkingImplements and debugs deep links in Capacitor apps - custom URL schemes, iOS Universal Links (apple-app-site-association, Associated Domains entitlement), Android App Links (assetlinks.json, autoVerify), and routing via @capacitor/app `appUrlOpen` + `App.getLaunchUrl()`. Covers the Capacitor 8.5+ UIScene change where AppDelegate `application(_:open:options:)` and `continue userActivity` stop being called and custom handling must move to SceneDelegate, plus cold vs warm launch testing. Use when links open Safari/Chrome instead of the app, `appUrlOpen` never fires, the launch URL is lost on cold start, or OAuth redirects do not return to the app. Do not use for the full UIScene migration (capacitor-uiscene-migration), push notification taps (capacitor-push-notifications), or social login plugin setup (capacitor-plugins).npx claudepluginhub cap-go/capgo-skills --plugin capacitor-featuresOther plugins' skills for the same job