Ionic and Capacitor
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
Ionic Framework is a UI component library for mobile-first web apps, and Capacitor is the native runtime that wraps a web app in an Android or iOS project and exposes device features through plugins. Together they let a web team ship a store app from a normal Angular, React or Vue codebase: the UI runs in the platform WebView and calls native code over a bridge. This subsection is a reference for web developers moving to mobile and for mobile developers evaluating the approach. The examples use Angular with standalone components and signals.
Version baseline
Checked against the npm registry and the Capacitor documentation on 2026-11-10.
| Component | Version |
|---|---|
Ionic Framework (@ionic/angular, @ionic/core) |
9.0.10 |
Ionic CLI |
7.2.1 |
Capacitor (@capacitor/core, @capacitor/cli) |
8.6.0 |
Angular |
22.2.5 |
@capacitor/camera |
8.2.6 |
@capacitor/geolocation |
8.2.4 |
@capacitor/preferences |
8.0.1 |
@capacitor/filesystem |
8.1.5 |
@capacitor/network |
8.0.1 |
@capacitor/app |
8.1.2 |
@capacitor/haptics |
8.0.2 |
@capacitor/splash-screen |
8.0.2 |
@capacitor/live-updates |
0.5.0 |
Playwright |
1.65.0 |
Capacitor 8 requires Node.js 22 or later, Xcode 26.0 or later and Android Studio Otter (2025.2.1) or later. It targets iOS 15.0 and later, and Android with minSdk 24 and compileSdk and targetSdk 36. New iOS projects use Swift Package Manager by default. On any discrepancy the current official documentation is the authority.
What’s covered
-
Getting Started with Ionic and Capacitor — how the two relate, the CLI, the project layout and the first run on a device.
-
Architecture and the Native Bridge — the WebView shell, the plugin call path and the local server scheme.
-
Components and Theming — Ionic components, adaptive styling, CSS variables and dark mode.
-
Navigation and Routing — ion-router-outlet, page lifecycle, tabs, guards and deep links.
-
Capacitor Plugins — official and community plugins and writing a custom plugin.
-
Data, Storage and Networking — HttpClient, CORS, storage options and an offline cache.
-
Platform Integration — native projects, capacitor.config.ts, permissions, safe areas, push and deep links.
-
Testing — unit, component, browser and on-device testing.
-
Building and Releasing — web build, signing, the stores, CI and live updates.
-
Ionic Cheat Sheet — a one-page quick reference.
Reading path
-
Start with Getting Started with Ionic and Capacitor and Architecture and the Native Bridge.
-
Build the UI with Components and Theming and Navigation and Routing.
-
Add device features and data with Capacitor Plugins and Data, Storage and Networking.
-
Ship with Platform Integration, Testing and Building and Releasing, using the Ionic Cheat Sheet as a reference.
Running example
Every page builds Trailhead, a hiking journal: a searchable trail list loaded from a REST API
(https://api.example.com/v1), a trail detail page, favourites, a "log a hike" flow that attaches a camera photo
and a GPS position, and an offline cache of the trails. The app id is com.example.trailhead. The same app is
built with Flutter in Flutter and Dart.
Related material on this site
-
Hybrid Apps — the parent subsection.
-
Hybrid Apps: IDEs & Tools — editors, Android Studio, Xcode and emulators.
-
Flutter and Dart — the alternative that draws its own UI.
-
React Native — the alternative that drives native views.
-
Media Optimization — images and video in apps.
-
Angular — the framework used by the examples.