Softwr

Mobile Development · head to head

Apache Cordova vs Detox

Apache Cordova logo

Apache Cordova

Mobile Development

Open source framework for wrapping HTML, CSS and JavaScript apps as mobile apps

From
Free
Free plan
Yes
Detox logo

Detox

Testing

Open source end-to-end testing framework for React Native apps, built and maintained by Wix

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Apache Cordova lists targets iOS, Android and Electron; only Detox lists gray-box synchronisation.
  • Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
  • Where Detox falls short: its community and plugin ecosystem is smaller than Appium's broader, foundation-governed mobile automation ecosystem.

How do Apache Cordova and Detox differ?

Apache Cordova and Detox differ on pricing model, platforms and category (Mobile Development against Testing). Only the attributes on which Apache Cordova and Detox actually diverge.

Attributes where Apache Cordova and Detox differ
AttributeApache CordovaDetox
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsiOS, Android, Windows, macOS, LinuxiOS, Android
CategoryMobile DevelopmentTesting

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Detox.

Which features does each one have?

They share no listed features; 6 appear only for Apache Cordova and 6 only for Detox. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Apache Cordova

  • Single JavaScript API for device functions
  • Plugin system managed from the command line
  • Targets iOS, Android and Electron
  • HTML, CSS and JavaScript app code
  • Apache 2.0 open source licence
  • Platform feature support documentation

Only in Detox

  • Gray-box synchronisation
  • React Native native integration
  • Real device and simulator support
  • Jest integration
  • Element matching and actions
  • CI-friendly execution

What is each one used for?

Apache Cordova is most often brought in for wrapping an existing web app as a mobile app. The jobs each tool is most often brought in to do.

Apache Cordova

  • Wrapping an existing web app as a mobile appnot Detox
  • Single codebase for iOS and Androidnot Detox
  • Prototyping mobile apps with web skillsnot Detox
  • Accessing device features from JavaScript through pluginsnot Detox

Detox

  • A React Native team wanting end-to-end tests that reliably wait for real app state rather than fixed sleep delaysnot Apache Cordova
  • A CI pipeline running mobile end-to-end tests that need to be genuinely reliable, not flaky, to avoid blocking merges on false failuresnot Apache Cordova
  • A team migrating from Appium-based React Native testing wanting tighter synchronisation with the app's async internalsnot Apache Cordova
  • An engineering organisation wanting a free, actively used-in-production framework rather than a lightly maintained side projectnot Apache Cordova

Where do Apache Cordova and Detox fall short?

Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. Detox's: its community and plugin ecosystem is smaller than Appium's broader, foundation-governed mobile automation ecosystem. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Apache Cordova

  • Apps render in a web view, so UI is not native by default
  • No built-in UI component library or hosted build service
  • Adobe's PhoneGap Build cloud service was discontinued in 2020
  • Many platforms listed in older versions, such as BlackBerry and Tizen, are no longer supported

Detox

  • It only benefits React Native apps; teams with native iOS, native Android, or non-React-Native hybrid apps get no advantage from its core gray-box synchronisation design and should use Appium instead
  • As a single-company open source project, its long-term maintenance priority is tied to Wix's own continued internal use of React Native and Detox, which is a real, if currently low, dependency risk
  • Initial setup, particularly around build configuration for iOS and Android, has a steeper learning curve than some competing frameworks, with configuration errors being a common source of early frustration
  • Its community and plugin ecosystem is smaller than Appium's broader, foundation-governed mobile automation ecosystem
  • Debugging synchronisation issues when the gray-box mechanism misjudges app idle state can itself be a non-trivial troubleshooting exercise, ironically producing the same kind of flaky-test debugging it is designed to avoid

How much do Apache Cordova and Detox cost?

Apache Cordova is free to use; Detox is free to use. Plan by plan below, from each vendor's own pricing page.

Apache Cordova

Free

No published plan breakdown. See the Apache Cordova review.

Detox

Free
  • DetoxFree
    • Full functionality, no usage limits
    • Community support via GitHub
    • Built and maintained by Wix for its own internal React Native testing needs

Which should you pick?

Choose Apache Cordova if

  • You need single javascript api for device functions.
  • You want to start without paying.
  • You work on iOS, Android, Windows, macOS, Linux.
  • You also want plugin system managed from the command line.

Choose Detox if

  • You need gray-box synchronisation.
  • You want to start without paying.
  • You work on iOS, Android.
  • You also want react native native integration.

Questions people ask

Is Apache Cordova or Detox better?
It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; Detox fits a React Native team wanting end-to-end tests that reliably wait for real app state rather than fixed sleep delays. Apache Cordova starts at Free and Detox at Free.
Which is cheaper, Apache Cordova or Detox?
Apache Cordova starts at Free and Detox at Free.
Does Apache Cordova or Detox run on more platforms?
Apache Cordova runs on iOS, Android, Windows, macOS, Linux. Detox runs on iOS, Android.
Can I use Apache Cordova for free?
Both have a free tier, so you can try either at no cost before committing.
What is Apache Cordova best used for?
Apache Cordova is most often used for wrapping an existing web app as a mobile app, single codebase for ios and android, prototyping mobile apps with web skills, accessing device features from javascript through plugins. Of those, wrapping an existing web app as a mobile app and single codebase for ios and android are not what Detox is typically brought in for.
What can Apache Cordova do that Detox cannot?
Apache Cordova covers Single JavaScript API for device functions, Plugin system managed from the command line, Targets iOS, Android and Electron, HTML, CSS and JavaScript app code. Detox covers Gray-box synchronisation, React Native native integration, Real device and simulator support, Jest integration.

Answered from the vendors’ own pages

Apache Cordova: Is Apache Cordova free?

Yes. The project describes itself as free and open source under the Apache License 2.0, maintained by the Apache Software Foundation.

Source
Detox: Is Detox owned by Wix?

Yes, it is built and maintained by Wix as an open source project, used internally across Wix's own React Native apps.

Apache Cordova: How is Cordova related to PhoneGap?

Nitobi Software developed PhoneGap in 2008 and Adobe acquired Nitobi in October 2011. The code was contributed to Apache and renamed Cordova.

Source
Detox: Does Detox work with native iOS or Android apps, not just React Native?

It is specifically designed around React Native's architecture; for native or non-React-Native hybrid apps, Appium is the more appropriate choice.

Apache Cordova: Which platforms does Cordova support?

As of version 11, iOS, Android, Windows 8.1, Windows Phone 8.1, Windows 10 and Electron are listed on Wikipedia. The project site has a page of per-platform feature support.

Source
Detox: Is Detox free?

Yes, entirely open source with no licence fee.

Share

Related pages

Other head to heads