ArticleslgStudy

computer science

Apache Cordova

Apache Cordova is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Apache Cordova rather than just read about it. In short: Apache Cordova (formerly PhoneGap) is a mobile application development framework created by Nitobi. Adobe Systems purchased Nitobi in 2011, rebranded it as PhoneGap, and later released an open-source version of the software called Apache Cordova.

Apache Cordova — main illustration
Apache Cordova — illustration

Key takeaways

  • Apache Cordova belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Apache Cordova to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Apache Cordova from memory before moving on to harder problems.

Reference excerpt

Apache Cordova (formerly PhoneGap) is a mobile application development framework created by Nitobi. Adobe Systems purchased Nitobi in 2011, rebranded it as PhoneGap, and later released an open-source version of the software called Apache Cordova. Apache Cordova enables developers to build hybrid web applications for mobile devices using CSS3, HTML5, and JavaScript, instead of relying on platform-specific APIs such as those in Android, iOS, or Windows Phone. It enables CSS, HTML, and JavaScript code to be packaged for different mobile platform. It extends the features of HTML and JavaScript to work with the device. The resulting applications are hybrid, meaning that they are neither truly native mobile applications nor purely web-based. They are not native because all layout rendering is done via Web views instead of the platform's native UI framework. They are not Web apps because they are packaged as apps for distribution and have access to native device APIs. Mixing native and hybrid code snippets has been possible since version 1.9. The software was previously called just "PhoneGap", then "Apache Callback". PhoneGap was Adobe's commercial version of Cordova along with its associated ecosystem. Many other tools and frameworks are also built on top of Cordova, including Ionic, Monaca, VoltBuilder, TACO, Onsen UI, GapDebug, App Builder, Cocoon, Framework7, Quasar Framework, Evothings Studio, NSB/AppStudio, Mobiscroll, and Telerik Platform. These tools use Cordova, and not PhoneGap for their core tools. Contributors to the Apache Cordova project include Adobe, BlackBerry, Google, IBM, Intel, Microsoft, Mozilla, and others.

History

PhoneGap was first developed by Nitobi Software at an iPhoneDevCamp event in San Francisco in August 2008. Apple Inc. has confirmed that the framework has its approval, even with the change to clause 3.3.1 of the Apple iPhone SDK developer license agreement 4.0 adopted in 2010. The PhoneGap framework is used by several mobile application platforms such as Monaca, appMobi, Convertigo, ViziApps, and Worklight as the backbone of their mobile client development engine. Adobe acquired Nitobi Software on October 3, 2011. The PhoneGap code was subsequently contributed to the Apache Software Foundation to start a new project called Apache Cordova. The project's original name when submitted to the Apache Software Foundation, Callback, was changed to Cordova for ease in searching the web. It also appears in Adobe Systems as Adobe PhoneGap and also as Adobe PhoneGap Build. Early versions of PhoneGap required an Apple computer to create iOS apps and a Windows computer to create Windows Mobile apps. After September 2012, Adobe's PhoneGap Build service allows programmers to upload CSS, HTML, and JavaScript source code to a "cloud compiler" that generates apps for every supported platform. This service was discontinued in 2020.

Design and rationale The core of an Apache Cordova application uses CSS3 and HTML5 for rendering and JavaScript for logic. HTML5 provides access to underlying hardware such as the accelerometer, camera, and GPS. However, browsers' support for HTML5-based device access is not consistent across mobile browsers, particularly older versions of Android. To overcome these limitations, Apache Cordova embeds the HTML5 code inside a native WebView on the device, using a foreign function interface to access the native resources of it. Apache Cordova can be extended with native plug-ins, allowing developers to add more functionalities that can be called from JavaScript, making it communicate directly between the native layer and the HTML5 page. These plugins allow access to the device's accelerometer, camera, compass, file system, microphone, and more. However, the use of Web-based technologies leads some Apache Cordova applications to run slower than native applications with similar functionality.

Supported platforms As of version 11, Apache Cordova currently supports development for the operating systems Apple iOS, Google Android, Windows 8.1, Windows Phone 8.1, Windows 10 and Electron (software framework) (which in turn runs on Windows, Linux and macOS). Earlier version of Apache Cordova used to support Bada, BlackBerry, Firefox OS, LG webOS, Microsoft Windows Phone (7 and 8), macOS, Nokia Symbian OS, Tizen (SDK 2.x), and Ubuntu Touch.

See also

List of rich web application frameworks List of open-source application frameworks Quasar Framework RhoMobile Suite Cocos2d WinJS NativeScript Xamarin Flutter Titanium SDK Appery.io

References

Bibliography

External links

Official website How to create a Cordova Plugin from Scratch

Worked examples

Example 1 — a first encounter with Apache Cordova

Start with the simplest possible case. Write down what Apache Cordova claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Apache Cordova before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Apache Cordova ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Apache Cordova

In research
Apache Cordova appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Apache Cordova in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Apache Cordova is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2009 software, Android (operating system) development software, Apache Software Foundation projects, so understanding it makes those chapters shorter.
In everyday life
Look for Apache Cordova outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Apache Cordova” →

How to study Apache Cordova in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Apache Cordova means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Apache Cordova out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Apache Cordova in simple terms?

Apache Cordova (formerly PhoneGap) is a mobile application development framework created by Nitobi. Adobe Systems purchased Nitobi in 2011, rebranded it as PhoneGap, and later released an open-source version of the software called Apache Cordova.

Why does Apache Cordova matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Apache Cordova?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Apache Cordova.

Tags

  • 2009 software
  • Android (operating system) development software
  • Apache Software Foundation projects
  • BlackBerry development software
  • Communication software
  • Integrated development environments
  • Mobile technology companies
  • Rich web application frameworks

Keep exploring