What’s the difference between Apache Cordova and Ionic?

Asked

Viewed 13,776 times

15

I have some questions regarding Apache Cordova and Ionic. Both, to me, seem the same thing with the same purpose, allow the creation of hybrid applications for mobile devices.

See that in the ionic website it is necessary to have the Cordova installed for the Ionic to work. Therefore, this is where my doubts arise.

Doubts

  1. What is the difference of Apache Cordova and relation to Ionic?
  2. What makes one dependent on the other to create applications hybrid?
  • 2

    Some that may help: https://answall.com/q/170138/101, https://answall.com/q/79939/101, https://answall.com/q/153243/101, https://answall.com/q/174598/10 and https://pt.stackoverflowcom/q/130973/101

2 answers

19


Briefly, the Apache Cordova is responsible for making your Javascript code access native resources device, such as camera, GPS, accelerometer, among others. Already the Ionic is a framework that takes care of the visual part of the application, the way it will be presented to the end user, creating appearances very similar to native applications.

As I suppose you’ve read, Ionic was built on top of Cordova, which is the bottom layer, responsible for taking care of the transformation part of the application into packages for each operating system.

Below is a comparison using the same code, but compiled for IOS and Android.

inserir a descrição da imagem aqui


Note that Ionic does the code treatment to leave the appearance according to the system you use, being it Android, iOS, etc.

Apache Cordova works with others frameworks beyond the Ionic, as jQuery Mobile, Dojo Mobile, Sencha Touch, Lungo, Mobile Angular UI.

The conclusion is that they are two different tools, dependent, being the Cordova a bridge to deal with communication with hardware, functioning as "backend" and Ionic to work on issues of appearance for the end user, such as "frontend".

  • And Phonegap has something to do with these guys?

  • @LINQ The Phonegap project, which has also been called Apache Callback and Apache Deviceready, became the current Apache Cordova after a few years. Adobe Phonegap as it says on own website of Cordova, is the most popular distribution of Apache Cordova, which also acts as backend. Apache Cordova is the engine that powers Adobe Phonegap. That image illustrates well what happened.

  • @As the author stressed only the question of the relationship between Ionic and Cordova, I saw no reason to talk about Phonegap in the answer. But the historical is interesting. = D

  • 2

    Show, thanks for the explanation. I know he didn’t ask and such, but I was curious because I always get confused when they talk about one or the other. Thanks again for the explanation.

8

Cordova is the open base project creating hybrid apps for mobile. It uses web technologies (HTML, CSS, JS) to create applications for mobile phones and other devices, but that do not run on one browser normal as a website. Device features are accessible, unlike a normal website.

Ionic is an extension of Cordova using Angularjs preferring Typescript than Javascript. This allows the visual formatting to be much richer and easier (although there are those who disagree that it is easier), its focus is the UI trying to abstract the differences of each platform and not take care of the access to device resources.

There is a recurring and adjacent doubt about the Phonegap that is the Cordova extended by Adobe.

They are not competitors, they are complementary.

More information:

Source.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.