Mobility Technology

Cordova plugin: It’s used in a mobile-first world

By: | Chetan

Publish Date: October 1, 2020

Have you used an Apache software in the last hour? Chances are, even unknown to yourself, you definitely have. If you have used a credit card, ordered something online, or used the web browser of your phone or desktop for anything – it is almost certain you must have used an Apache software. This is the impact of open source on the increase of mobile applications in an increasingly digital world – the openness of knowledge and ideas.

Developing for each mobile platform, in general, has been an exhaustive task – especially if your resources are limited. Or when you are creating web apps with a JavaScript framework like SAPUI5, for instance, you cannot leverage all the native functions of any device (e.g., GPS, health data, camera, etc.). This is because one – developers do not get access to all features since the Android and iOS universes are fragmented with multi-generation devices. Secondly, as mobile devices evolve every generation, additional features will need to be added faster than ever.

This is where Apache Cordova gives you the power to code web applications and continue to use device features that both Android and iOS support almost with a single codebase.

What is Apache Cordova

Apache Cordova is an open-source mobile development framework that allows the standard use of widely used web technologies such as HTML5, JavaScript, and Css3 for cross-platform development. Cordova avoids each platform’s native development and helps execute applications within ‘wrappers’ or app containers that rely on standard API-bindings to access each device’s data, sensor, or network status.

Apache is the world’s largest Open Source foundation that provides >227 million lines of code made available to the public at large at no cost. Plus, Cordova compiles applications into a package file (IPA or APPX) that are required by most app stores – giving developers the benefit of writing code once and deploying everywhere with ease.

Plugins are a critical part of the Cordova ecosystem as they provide the interface for both Cordova as well as the native components to talk to each other with bindings to standard device APIs. Plugins are written in the native code and therefore allow developers to invoke native code from JavaScript. ‘Official or core plugins’ are maintained by the Cordova community, which gives access to device capabilities such as camera, GPS, battery, etc. Then there are ‘custom or third-party plugins’ that provide additional bindings to features that may be targeted at a specific purpose for the app or specific type of devices. Or you can even develop a new plugin and share it with the community!

Despite all its over-abundant advantages, Cordova does have a few limitations – rather pitfalls – one should always keep in mind.

Overcoming common plugin limitations in Cordova

It’s true whatever you can achieve with native code, you can achieve with Cordova – except for a few limitations. One, poor documentation makes it difficult to find specific information or which packages are required with the Android SDK Manager. Second, since apps built with Cordova are contained in web views, they cannot perform as well as their native counterparts – limiting the kind of apps you can build. Finally, given not every device is the same, not all plugins will work on every device. This means such projects will require extra effort in creating testing environments. SAP allows configuration of Cordova apps on Fiori, for instance.

Regardless, Cordova does indeed make the process of developing apps comfortable, especially for organizations that look to transition into mobile-first app development with negligible efforts. The tool can also be used in integrated development environments, including Visual Studio, XCode, Eclipse, and the likes.

Last but not least, the speed of creation and integration is merely broken by a little extra effort in creating custom plugins once – which is not a big problem for a seasoned developer.

Reference: sap.com

Related Posts.

Pioneering Innovations and Their Transformative Impact
Innovation North America , Technology , Technology And Innovation
Empowering Women In Tech , Technology
Canada’s Thriving Technology Ecosystem
Canada Thriving Technology , Canada’s Technology
Microsoft , Microsoft Azure
IoT Blog
Embedded System Networks , Internet Of Things , IoT
RPA , RPA Adoption , RPA Advantages
RPA Blog
Banking On RPA , Delivering RPA Pilot , RPA , RPA Adoption , RPA Advantages
Analytics , Application Support , Artificial Intelligence , Cloud Computing , DevOps , Enterprises Modernization
Machine Learning , ML , S/4HANA , SAP , Technology
Applications , Mobile First , SAP , SAP Fiori , Technology

A fiery evolution of Fiori

Srihari Tummala

Experiences in resiliency from COVID-19
COVID-19 , Health And Sciences , Healthcare , Technology