Softwr

Mobile Development · head to head

Apache Cordova vs Ruby on Rails

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
Ruby on Rails logo

Ruby on Rails

Web Development

A full-stack framework for building web applications

From
Free
Free plan
Yes

The short version

  • Ruby on Rails is an open source full-stack web framework licensed under MIT.
  • Both are free.
  • Where Apache Cordova falls short: apps render in a web view, so UI is not native by default.
  • Where Ruby on Rails falls short: written in Ruby, so projects need the Ruby runtime and developers who know Ruby.

How do Apache Cordova and Ruby on Rails differ?

Apache Cordova and Ruby on Rails differ on platforms, category (Mobile Development against Web Development) and year founded (2008 against 2004). Only the attributes on which Apache Cordova and Ruby on Rails actually diverge.

Attributes where Apache Cordova and Ruby on Rails differ
AttributeApache CordovaRuby on Rails
PlatformsiOS, Android, Windows, macOS, LinuxWeb
CategoryMobile DevelopmentWeb Development
Founded20082004

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. 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 Ruby on Rails

Nothing recorded that Apache Cordova does not also cover.

What is each one used for?

Apache Cordova is most often brought in for wrapping an existing web app as a mobile app; Ruby on Rails for building e-commerce platforms that scale from startup to IPO. The jobs each tool is most often brought in to do.

Apache Cordova

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

Ruby on Rails

  • Building e-commerce platforms that scale from startup to IPOnot Apache Cordova
  • Developing SaaS applications with consistent conventions across teamsnot Apache Cordova
  • Creating marketplace platforms like Airbnb with transactional workflowsnot Apache Cordova
  • Integrating cloud file storage and real-time WebSocket updatesnot Apache Cordova
  • Enforcing encryption and security protections against common attacksnot Apache Cordova

Where do Apache Cordova and Ruby on Rails fall short?

Apache Cordova's most cited limit: apps render in a web view, so UI is not native by default. Ruby on Rails's: written in Ruby, so projects need the Ruby runtime and developers who know Ruby. 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

Ruby on Rails

  • The framework is Ruby-only by design, per rubyonrails.org's own description of its convention over configuration approach, requiring the Ruby runtime rather than supporting alternate languages
  • Written in Ruby, so projects need the Ruby runtime and developers who know Ruby
  • Early critics raised scalability concerns about Rails on the Ruby MRI interpreter, and Twitter replaced its user-facing Rails code in 2011 over performance

How much do Apache Cordova and Ruby on Rails cost?

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

Ruby on Rails

Free
  • Open source (MIT)Free

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 Ruby on Rails if

  • You want to start without paying.

Questions people ask

Is Apache Cordova or Ruby on Rails better?
It depends on the job. Apache Cordova fits wrapping an existing web app as a mobile app; Ruby on Rails fits building e-commerce platforms that scale from startup to IPO. Apache Cordova starts at Free and Ruby on Rails at Free.
Which is cheaper, Apache Cordova or Ruby on Rails?
Apache Cordova starts at Free and Ruby on Rails at Free.
Does Apache Cordova or Ruby on Rails run on more platforms?
Apache Cordova runs on iOS, Android, Windows, macOS, Linux. Ruby on Rails runs on Web.
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 Ruby on Rails is typically brought in for.
What can Apache Cordova do that Ruby on Rails 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.

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
Ruby on Rails: Is Ruby on Rails free?

Yes, Ruby on Rails is free and open-source, licensed under the MIT License. There are no costs associated with using or distributing the framework.

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
Ruby on Rails: What is Ruby on Rails licensed under?

Ruby on Rails is licensed under the MIT License, a permissive open-source license that allows commercial and private use.

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