Capacitor vs Cordova: Which Fits Your App?

4 min read
ByPaula CKraftwire Software

Hybrid apps use HTML, CSS and JavaScript inside a native app. A bridge connects that web code to device features, such as the camera. The key choice is how each framework handles native projects.1

Where Cordova and Capacitor stand

Apache Cordova remains an active open-source project. PhoneGap and PhoneGap Build ended in 2020, but Cordova did not.2

Capacitor's design fits modern web work and direct use of native tools.3 Capacitor can provide a modern native shell while the app's screen code stays web-based. The choice still depends on device features, team skills and long-term upkeep.3, 4

Volunteers at the Apache Software Foundation maintain Cordova. The Ionic team at OutSystems maintains Capacitor.1

Capacitor has full-time engineers and product staff working on it. Cordova uses a group-led process rather than goals set by a support business.5

Native projects and day-to-day work

Capacitor keeps the full iOS and Android projects in version control. They are real native projects, rather than code made through an extra layer.4

Developers can open those projects in Xcode and Android Studio.1, 3, 4 Cordova manages the native project and its files through an extra layer. This makes direct native work harder and can cause custom changes to be lost.5

That layer can add friction when debugging native code. Capacitor instead gives direct access to code, logs and breakpoints.4

Capacitor lets developers write Swift or Objective-C code for iOS. On Android, they can write Java or Kotlin within the native project.5

That code can add native screens or app logic and expose it to web code through APIs. Native SDK work follows normal iOS and Android practices.4, 5

Plugins and web app support

Capacitor supports many existing Cordova plugins. It also has its own plugins, so a move need not replace every plugin at once.3, 4, 5

The plugin API is designed to be easier for native developers to work with. Direct native access sits alongside both types of plugin.3

Features such as push, scanning and in-app purchases rely on third-party plugins of mixed quality.4, 6 An active Cordova plugin with no suitable replacement can still be a reason to stay with Cordova.2, 4

A progressive web app, or PWA, runs in the browser. Capacitor supports a shared codebase for a web app, PWA and native mobile app.1, 3

Capacitor works with React, Angular, Vue and plain JavaScript projects. Cordova focuses on packaging web apps, with extra setup needed for PWA support.1, 3

Moving an existing Cordova app

A migration can start by installing Capacitor and setting the app name and package name. Adding the native platforms creates projects that open in Xcode and Android Studio.4

Existing Cordova plugins can stay where they work, then be replaced in smaller changes. Where no replacement exists, a simple native plugin can fit in one file.4

Web API calls can be wrapped to point to Cordova or Capacitor based on the app running. This lets the native layer change without each team changing its calls at once.4

A staged rollout can track crashes, speed changes and business measures. Less critical plugins can move later, keeping each release smaller and limiting risk.4

The move also needs a record of the widget ID, platform overrides and version codes from config.xml. The release keystore and its passwords need backups, with Play App Signing status recorded.6

The app listings belong in Apple and Google accounts you control. Web code updates must stay within the app's reviewed purpose.6

A planned service without local native build work

KW Native's web-to-app service is coming soon, with planned builds for responsive web apps.7, 8 KW Native's planned builds include push alerts, Face ID or Touch ID login, OAuth and deep links.7 KW Native's planned handover includes the full GitHub source repository and RUNBOOK.md.

Sources

  1. mobiloud.com › capacitor-vs-cordova
  2. sdk.docutain.com › cordova-versus-capacitor
  3. spundan.com › capacitor-vs-cordova.html
  4. found.com › migrating-from-cordova-to-capacitor
  5. ionic.io › capacitor-vs-cordova-modern-hybrid-app-development
  6. appsubmitter.io › cordova-alternative
  7. kwnative.com
  8. kwnative.com › get-started

Frequently asked questions

Can you use Cordova plugins inside a Capacitor application?
Yes. Capacitor supports many existing Cordova plugins alongside its own plugins. Working plugins can stay during a migration, while others move to replacements or custom native code.

Related articles