Cordova Interview Questions
Cordova is a platform that is used for mobile applications. Cordova/Apache Cordova and PhoneGap belong to the same domain but after the acquisition of PhoneGap by Adobe, it is again released as the Apache Cordova because it is licensed under Apache.
Below are some Cordova or hybrid mobile application interview questions that may help the candidate in cracking the interview.
1. What is Cordova?
With the help of Cordova, we can very much achieve the feature and package of the web application in the devices installer format.
2. Explain the mechanism of Cordova?
Cordova application’s user interface is technically and effectively a webview that engages the entire screen and runs in the native container. So, basically, it is the same webview that the native operating system is using.
Therefore, it means that an only a native container gets modified according to the operating system and internally the web pages remain the same. Since the web browser relinquishing the web pages vary from one operating system to other.
UIWebView class is for iOS android.webkit.webview is for android, WebViewClass is for windows.
Also, Read PhoneGap interview questions and answers
3. What does Operating Systems it support?
All major platforms are supported. Here is the list of the major platforms:
- Amazon Fire OS
- BlackBerry 10
- Firefox OS
- Windows 8
- Windows Phone
Before developing any platform listed above, the user has to install the Cordova’s command line Interface (CLI).
4. Explain what are the limitations of Cordova?
The Cordova comes with both benefits as well as drawbacks.
The limitations of Cordova are:
- The Hybrid applications are slower than native ones so it is not a great idea to use Cordova for large applications that need lots of data and functionality.
- The Cross-browser compatibility can create lots of issues. Most of the time we are developing apps for different platforms, so the testing and optimization can take a lot of time and effort as we need to cover a large number of devices and OS.
- Some plugins also have compatibility issues with the varying devices and platforms. There are also native APIs that are not yet supported by Cordova.
5. What are the device installer formats?
The device installer formats also vary from one operating system to other. The device installer formats for some operating systems are:
- Android – .apk (Android Application Package)
- IOS – .ipa (iPhone Application Archive)
- Windows Phone .xap (Silverlight Application Package)
6. What can you say about Phone Gap and Cordova?
PhoneGap and Cordova are same and actually, the Apache Cordova can be considered as an engine that powers PhoneGap, like how Webkit is an engine that powers Chrome. Both of them belong to the same domain.
7. What are Cordova Events?
Cordova events are an activity performed. There are various events that can be used in Cordova projects.
- DeviceReady: This event is caused when the Cordova gets completely loaded. This also helps to get confirmed that no Cordova functions are called before it is completely loaded.
- Pause: This event is caused when the application is put into the background.
- Resume: This event is caused when the application is returned from the background.
- Backbutton: This event is caused when the backbutton gets pressed.
- Menu button: This event is caused when the menu button gets pressed.
- Search button: this event is caused when the search button on Android is pressed.
- Startcall button: This event is caused when the startcall button gets pressed.
- Endcall button: This event is caused when the endcall button gets pressed.
- Volumedown button: This event is caused when the volumedown button gets pressed.
- Volumeup button: This event is caused when the volumeup button gets pressed.
8. What is Cordova plugman?
Cordova plugman is a command line tool that is used for installing and managing plugins.
The user should use plugman if the user wants the application to run on one particular platform.
If the user wants to create a cross-platform app, then it should use Cordova-cli which can modify plugins for different platforms.
Read 20 Best Bootstrap interview questions 2018
9. What are the features of Cordova?
Command Line Interface (Cordova CLI)
Comand Line Interface is the tool that can be used for starting the projects, developing the processes for different platforms, installing plugins and many other useful things that make the development process easier.
Cordova core components
Cordova provides set of core components that every mobile application requires. All these components are used for creating the base of the application.
It provides API (Application Programming Interface) that will be used for implementing native mobile functions to our JS app.
Cordova is licensed under the Apache License, version 2.0. Apache and the Apache feather logos are the trademarks of The Apache software foundation.
10. What are the advantages of Cordova?
Cordova features many benefits to the users. Below are the advantages of Cordova:
- Cordova provides one platform for developing hybrid mobile applications. The user can develop one application that will be used on different mobile platforms like IOS, Android, windows phone, Amazon-Fireos, blackberry, Firefox OS, Ubuntu, and Tizien.
- Cordova is faster to build hybrid application then its native application. So, Cordova can save a lot of time.
- There are large amounts of community add-ons that can be used with Cordova. Lots of libraries and frameworks are optimized for working with it.