Skip to content

Capacitor Mobile Project Setup

Configure and operate Capacitor in a Wappler Mobile project, including app identity, System Check, platforms, targets, build, run, open, debug, and packaging controls.

Capacitor setup starts with a Mobile project

Capacitor is the standard app runtime for Wappler Mobile projects. Start in Project Manager with New Project → Mobile, choose Framework7 Blank or Bootstrap Blank, keep Capacitor selected as the runtime, and create the project. The current app toolbar then manages System Check, platforms, targets, builds, runs, native IDE handoffs, and packages.

Mobile project
Supplies the app structure and www web assets.
Capacitor runtime
Adds platform projects and the native bridge.
Framework choice
Use Framework7 8 or Bootstrap 5 for the visible app interface.

Set the project identity before adding platforms

Project Settings → General controls the runtime, design framework, routing, app file, assets, style file, and optional SQLite support. App Info controls the title, description, application ID, version, and author metadata written into the Capacitor project configuration and package metadata.

Setting Purpose Practical guidance
RuntimeSelects Capacitor for the app projectSet this when creating the Mobile project
Design FrameworkFramework7 8 or Bootstrap 5Choose by UI model, not by platform
Use Routing / Handler / FileControls routed content pagesFramework7 handler for Framework7; App Connect for Bootstrap 5
App FileMain client application scriptKeep project initialization in one known file
TitleUser-facing application nameUse the final product name before store builds
IDUnique reverse-domain application identifierChoose carefully before native platform creation
VersionRelease version stored in package metadataUpdate deliberately for releases
Use SQLiteEnables local database integrationTurn on only when the app needs device-local structured data

Confirm Capacitor components inside the mobile page

The demo page contains real Capacitor App, Network, and Geolocation components inside a Framework7 route. This is the correct architecture: the Mobile project owns the runtime, the UI framework owns presentation, and App Connect components expose native state to the page.

System Check verifies the required toolchain

The System Check button lives on the app publishing toolbar. Run it before adding a native platform or when a build tool changes. Wappler reports missing Node packages and platform requirements in Output so setup problems are resolved before they become opaque build failures.

Platform is the add, select, and maintenance menu

Every Capacitor project begins with the web platform. The Platform menu lists installed targets with their versions and exposes available iOS, Android, and Electron targets. Adding a target installs its packages, creates the native platform project, applies extension requirements, and refreshes the toolbar.

Platform Host requirement Primary handoff
webAny supported development hostBrowser preview and web-compatible testing
androidAndroid SDK/JDK and Android StudioBuild, run target, device/emulator, open native project
iosmacOS with XcodeBuild, simulator/device target, open native project
electronDesktop build toolchainBuild, run, open, and Pack desktop target

Complete Capacitor toolbar reference

The publishing toolbar is a full operational surface, not only a Build button. Use the controls in a repeatable order and read Output after every platform operation.

Control Action
Refresh ListReload installed platforms and available run targets
Active EnvironmentSelect the Wappler environment used for the app build
PlatformAdd or select web, iOS, Android, or Electron
RemoveRemove the selected platform project
UpdateUpdate the selected platform
Platform GuideOpen the guide for the selected target
BuildCopy/synchronize web assets and build the selected platform
PackPackage an Electron target for distribution
Run OnChoose a detected simulator, emulator, or target
RunRun on the selected connected target
Enable DebugBuild/run with debugging enabled
OpenOpen the native platform project in its platform application
Output / TerminalInspect Wappler operation output or use a project terminal
System CheckVerify and install required components
Clear outputClear the current Output or Terminal pane

Use one reliable build, run, and open cycle

Select the environment and platform, refresh targets, build, choose Run On, then Run. Use Open when native signing, manifest, store, or platform-specific work belongs in Android Studio, Xcode, or the Electron project. Return to Wappler for the shared pages, App Connect logic, extensions, and assets.

Select the intended environment
Select or add the target platform
Refresh the device/simulator target list
Build and review Output
Choose Run On and run the app
Open the native project only for platform-specific work

Extension changes can add packages and platform configuration

When a Capacitor extension is added or changed, Wappler refreshes project assets, evaluates the extension’s Capacitor package requirements, installs target-specific packages when needed, and applies platform configuration such as Android manifest entries or iOS plist values. Build again after extension or permission changes.

IMPORTANT: A native plugin is not complete until its package, platform configuration, permissions, web assets, and target build are all synchronized.

Finish setup with a platform-by-platform release check

Confirm the application ID and version, icons and splash assets, target permissions, environment values, offline/network behavior, signing, production build mode, install/run behavior, and store package on every platform you plan to ship.

Area Verify
IdentityApp ID, title, version, author, bundle/package identifiers
AssetsIcons, splash screens, safe-area layout, launch appearance
CapabilitiesPermissions, plugin configuration, privacy descriptions
EnvironmentCorrect APIs, secrets handoff, URLs, and production flags
DistributionSigning, package format, installation, and store requirements

Next: add native capabilities

Continue into the complete native-plugin surface, then build the Camera workflow as a focused example.