Softwr

Mobile Development · head to head

Apache Cordova vs Vagrant

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
Vagrant logo

Vagrant

Cloud

Development environments made easy

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Apache Cordova lists targets iOS, Android and Electron; only Vagrant lists box management.
  • Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
  • Where Vagrant falls short: Vagrant 2.4.3 and later is licensed under the Business Source License 1.1 with IBM Corporation as licensor, not an OSI open source licence.

How do Apache Cordova and Vagrant differ?

Apache Cordova and Vagrant differ on platforms, category (Mobile Development against Cloud) and year founded (2008 against 2010). Only the attributes on which Apache Cordova and Vagrant actually diverge.

Attributes where Apache Cordova and Vagrant differ
AttributeApache CordovaVagrant
PlatformsiOS, Android, Windows, macOS, LinuxLinux, Windows, macOS
CategoryMobile DevelopmentCloud
Founded20082010

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Which features does each one have?

They share no listed features; 6 appear only for Apache Cordova and 20 only for Vagrant. 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 Vagrant

  • Box management
  • Provider support
  • Multi-machine setups
  • Provisioners
  • Networking
  • Synced folders
  • Snapshots
  • Plugins

What is each one used for?

Apache Cordova is most often brought in for wrapping an existing web app as a mobile app; Vagrant for reproducible local development environments defined in a Vagrantfile. The jobs each tool is most often brought in to do.

Apache Cordova

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

Vagrant

  • Reproducible local development environments defined in a Vagrantfilenot Apache Cordova
  • Provisioning identical VMs across VirtualBox, VMware and Hyper-V for a teamnot Apache Cordova
  • Sandboxing multi-machine setups on a developer laptopnot Apache Cordova

Where do Apache Cordova and Vagrant fall short?

Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. Vagrant's: each version converts to the MPL 2.0 Change License only four years after that version is first published. 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

Vagrant

  • Vagrant 2.4.3 and later is licensed under the Business Source License 1.1 with IBM Corporation as licensor, not an OSI open source licence
  • The Additional Use Grant forbids offering Vagrant to third parties on a hosted or embedded basis in a paid product that competes with IBM's paid versions of Vagrant
  • Each version converts to the MPL 2.0 Change License only four years after that version is first published
  • Uses that fall outside the Additional Use Grant require a separately negotiated licence from the licensor

How much do Apache Cordova and Vagrant cost?

Apache Cordova is free to use; Vagrant 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.

Vagrant

Free
  • Open SourceFree
    • Development environment provisioning
    • Multiple providers
    • Provisioner support

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 Vagrant if

  • You need box management.
  • You want to start without paying.
  • You work on Linux, Windows, macOS.
  • You also want provider support.

Questions people ask

Is Apache Cordova or Vagrant better?
It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; Vagrant fits reproducible local development environments defined in a Vagrantfile. Apache Cordova starts at Free and Vagrant at Free.
Which is cheaper, Apache Cordova or Vagrant?
Apache Cordova starts at Free and Vagrant at Free.
Does Apache Cordova or Vagrant run on more platforms?
Apache Cordova runs on iOS, Android, Windows, macOS, Linux. Vagrant runs on Linux, Windows, macOS.
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 Vagrant is typically brought in for.
What can Apache Cordova do that Vagrant 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. Vagrant covers Box management, Provider support, Multi-machine setups, Provisioners.

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
Vagrant: Is Vagrant free to use?

Vagrant is a free, open-source command-line utility for managing virtual machine lifecycles.

Source
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
Vagrant: Does Vagrant offer a paid tier?

Vagrant itself is free. HashiCorp offers a HCP Vagrant Registry with a free tier for use with Vagrant.

Source
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
Share

Related pages

Other head to heads