General guidance for developing cross-platform apps with Capacitor, covering core concepts, CLI usage, app configuration, platform management, and troubleshooting.
android/, ios/), framework ( vite.config.ts, angular.json, webpack.config.js, next.config.js), Capacitor version ( @capacitor/core in package.json), and iOS dependency manager ( ios/App/Podfile for CocoaPods vs. SPM).Match the user's request to a topic from the index below. If the request spans multiple topics, address them sequentially.
If the request matches a topic covered by a different skill, redirect the user to that skill (see Related Skills at the bottom).
Auto-detect the following by reading project files:
@capacitor/core version from package.json.android/, ios/).capacitor.config.ts or capacitor.config.json.ios/App/Podfile (CocoaPods) or SPM usage.Read the reference file for the matched topic and apply the instructions to the user's project.
TopicReferenceCore concepts (native bridge, how Capacitor works)references/core-concepts.mdCapacitor platforms (Android, iOS, Electron, PWA)references/platforms.mdCapacitor CLI commandsreferences/cli.mdApp configuration ( capacitor.config.ts)references/app-configuration.mdSplash screens and app iconsreferences/splash-screens-and-icons.mdDeep links and universal linksreferences/deep-links.mdAndroid edge-to-edge supportreferences/edge-to-edge.mdAndroid safe area handlingreferences/safe-area.mdLive reload setupreferences/live-reload.mdStorage solutionsreferences/storage.mdFile handling best practicesreferences/file-handling.mdSecurity best practicesreferences/security.mdiOS package managers (SPM, CocoaPods)references/ios-package-managers.mdCI/CD for Capacitor appsreferences/ci-cd.mdTesting (unit and E2E)references/testing.mdCross-platform best practicesreferences/cross-platform-best-practices.mdAndroid troubleshootingreferences/troubleshooting-android.mdiOS troubleshootingreferences/troubleshooting-ios.md
npx cap sync fails: Verify @capacitor/core and @capacitor/cli versions match. On iOS with CocoaPods, run cd ios/App && pod install. On Android, sync Gradle files in Android Studio.cd android && ./gradlew clean, then rebuild.ios/App/Pods and run cd ios/App && pod install.npx cap sync after any plugin installation. Verify the plugin appears in capacitor.config or the native project.capacitor.config uses the correct LAN IP address.https://<domain>/.well-known/apple-app-site-association (iOS) or https://<domain>/.well-known/assetlinks.json (Android). Verify the app is signed with the correct certificate.capacitor-app-creation — Create a new Capacitor app.capacitor-angular — Angular-specific Capacitor development.capacitor-react — React-specific Capacitor development.capacitor-vue — Vue-specific Capacitor development.capacitor-plugins — Install and configure Capacitor plugins.capacitor-plugin-development — Create custom Capacitor plugins.capacitor-app-upgrades — Upgrade Capacitor to a newer major version.capacitor-in-app-purchases — Set up in-app purchases.capawesome-cloud — Cloud builds, live updates, and app store publishing.