How Android JS Is Different From Other Frameworks/Libraries ?
In this article, I’ll try to explain How Android JS is different from other frameworks like: Cordova, Phonegap and other hybrid app development frameworks.
Discussion
Slack Channel for support and discussion
What is Hybrid apps ?
Hybrid apps
are just simple apps which are built using Web Technologies
like : HTML/CSS, JavaScript
What is Android JS ?
Android JS is an open-source framework developed and maintained on GitHub. Android JS allows for the development of Android applications using front and back-end components originally developed for web applications: Node.js
runtime for the backend and Android Webview for the frontend. Android JS
framework can be used to android apps with frontend technologies like JavaScript, HTML, and CSS
.
What is Cordova ?
Apache Cordova
, formerly known as Adobe PhoneGap
, is an open source framework for creating cross-platform hybrid mobile applications using web standard technologies such as HTML5, CSS3, and JavaScript
. Cordova has been around for many years with a lot of resources available on the internet. Additionally, there are a lot of plugins available to enhance your application.
So let’s talk about How Android JS is different ?
let’s discuss the
app architecture
ofAndroid JS
This is the architecture of Android JS
- Here you can simply see that there is a
Node JS runtime environment
provided byAndroid JS
, which means you can use anyNPM packages
inyour app
. Android JS
provides two processBack Process
andFront Process
—Front Process
is just views of your app, you can make them inHTML/CSS
,Angular
,Phonon Framework
,Onsen UI
,Vue
etc…
—Back Process
is themain
process of your app which communicates withNode
environment.- In order to make communication between
Back
andFront
process,Android JS
providesIPC (Inter Process Communication).
Android JS
provides variousNative Android Libraries
like:Notification
,Toast
,Call
,SMS
, etc…Android JS
providesBrowser Libraries
as well like:Camera API
,Microphone API
.
Now let’s discuss the
app architecture
ofCordova
This is the architecture of Cordova
Cordova
provides theFront Process
which is nothing but just the views of your app, you can make them inHTML/CSS
,Angular
,Phonon Framework
,Onsen UI
,Vue
etc…Cordova
provides variousBrowser Libraries
like :Notification
,Camera
,Microphone
, etc…Cordova
does not provideNative Libraries
.Cordova
does not provide anyBack end
support but you canbuild API based app
, whichfetches
the data fromserver
usingAPI’s
.Cordova
is just forFront end
withBrowser API's
.
Conclusion
No matter what, each framework has its pros and cons. It truly comes down to what you’re comfortable with and what your application needs are. In the end, both are great options for creating and debugging cross-platform apps.
Android JS
providesBack
andFront
both processes, whileCordova
just provideFront
process only.Android JS
providesNode JS runtime environment
inside your app, whileCordova
does not provide such kinda facility at all.Android JS
providesNative Android Libraries
as well asBrowser API's
, whileCordova
only provideBrowser API's
.- Both
frameworks
areOpen Source
. - Both have various
Front end
frameworks to work on.
Cheers !
📝 Read this story later in Journal.
🗞 Wake up every Sunday morning to the week’s most noteworthy Tech stories, opinions, and news waiting in your inbox: Get the noteworthy newsletter >