Skip to main content

cordova

Cordova

Cordova

Tutorial:

Cordova

Cordova 11

https://coenraets.org/phonegap-cordova-tutorial/#0

Cordova | is a Web-to-native wrapper, allowing the developer to bundle Web apps into standalone applications.

img

What is Apache Cordova?

Cordova takes your web application and renders it within a native WebView. A WebView is an application component (like a button or a tab bar) that is used to display web content within a native application. You can think of a WebView as a web browser without any of the standard user interface elements, such as a URL field or status bar. The web application running inside this container is just like any other web application that would run within a mobile browser—it can open additional HTML pages, execute JavaScript code, play media files, and communicate with remote servers. This type of mobile application is often called a hybrid application.

Besides providing a basic framework to run a web app within a native application, Cordova also provides JavaScript APIs to allow access to a wide variety of device features, like the contacts database. These capabilities are exposed through the use of a collection of plugins. Plugins provide a bridge between our web application and the device’s native features. The Ionic team has gone a step further and created Ionic Native, with TypeScript interfaces for over 200 of the most common plugins

img

The Web, the most time-tested, universal runtime in the world

  • PhoneGap was created around 2009 by a startup called Nitobi as an open source way to access the "native" environment through an embedded Web View in a native app.
  • The goal of the project was to make it possible to build the bulk of a mobile app experience with pure web technologies like HTML5, CSS, and Javascript, but still be able to call into native code when necessary.
  • In 2011 Adobe purchased Nitobi and with it the rights to the PhoneGap brand, and the open source core was donated to the Apache Software Foundation under the name Cordova.
  • PhoneGap and Cordova both use the Cordova CLI

img

Cordova-Simulate launch app in browser https://github.com/Microsoft/cordova-simulate Cordova App Templates