paint-brush
Introduction to Hybrid Mobile Appsby@amanhimself
556 reads
556 reads

Introduction to Hybrid Mobile Apps

by Aman MittalAugust 10th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A hybrid mobile application is built with HTML, CSS and JavaScript and is contained in a native wrapper so that it can be installed on a mobile device. This can be done without having to learn the native programming languages (e.g. Swift, Java).

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Introduction to Hybrid Mobile Apps
Aman Mittal HackerNoon profile picture

What is a Hybrid Mobile App?

Hybrid application is a type of mobile application that uses browser window to display its interface.

A hybrid mobile application is built with HTML, CSS and JavaScript and is contained in a native wrapper so that it can be installed on a mobile device. This can be done without having to learn the native programming languages (e.g. Swift, Java).

It does mean that there is one codebase for all different platforms such iOS, and android.

This comes under the classification of types of mobile applications that consists of three types:

  • Native: developed using platform specific programming language such as Objective C or Java
  • Mobile Websites: developed using web technologies such as HTML, CSS & JavaScript and are accessible only through mobile web browser. They are actually web applications.
  • Hybrid: cross-platform and have access to native APIs (mostly through plugins)

For example, an architecture of Hybrid Mobile application developed using Ionic Framework consists of two concepts that one must be familiar with ASAP: WebView & Apache Cordova.

What is a WebView?

Think it of as a browser that runs inside the scope of a mobile application using a framework such as Ionic that mimics the native UI. This browser implements code written in HTML, CSS and JavaScript.

The application on a specific mobile operating system runs via tool like Cordova. It provides APIs written in JavaScript to interact with Native features of mobile device such as access to camera or a microphone.

WebView communicates with Cordova’s APIs which then further communicates with mobile devices.

WebViews are so common these days that you can build desktop applications using Electron.

Why To Go Hybrid?

Before answering this question mysellf, I think you should read Myths around Hybrid Mobile Applications? written by Simon of Devdatic.com.

This will answer the question above and along with it, my POV is that if you already know web development and or have experience with frameworks like Angular, or React, opting for Hybrid mobile development is a good way to expand your skills and take leverage of your current coding skills. After all, I love creating stuff and for me this is a great start.

Alternatives

There are few alternates/frameworks available in the world of Hybrid Development. One of them is Ionic Framework and with its next release earlier this year, it provides better performance for the hybrid apps. It also has a huge and helpful community to help you out whenever you get stuck.

Other options which I haven’t tried yet but think are worth mentioning include compile-to-native frameworks like React Native and NativeScript.

Want to receive more articles like this one? Subscribe me here. Sometimes, I send “never seen before” content to my subscribers.

If you have any queries, ping me on Twitter


Aman Mittal 🖖 (@amanhimself) | Twitter_The latest Tweets from Aman Mittal 🖖 (@amanhimself). #BookBlogger @ https://t.co/UQvyNf1OTC | Developer | #Nodejs |…_twitter.com