July 13, 2018

Sreekanth B

Frequently Asked Freshers Apache Cordova Interview Questions And Answers

Explain What Do You Need To Develop In Phonegap?


IOS: Xcode, iOS SDK

Android: Android SDK, ADT plugin

BlackBerry: Sun SDK, Apache ant and BlackBerry Webworks SDK

Symbian: SDK

Mention What Is The Difference Between Phonegap And Phonegap Build?

PhoneGap: It is a framework for mobile application development, built upon the open source Apache Cordova project. It permits you to write an app once with CSS, JavaScript, HTML and then deploys it to a broad range of mobile devices without losing the features of a native app.

PhoneGap Build: It is a cloud-based service built on top of the PhoneGap framework.

List Out Some Of The Phonegap Events?

Some of the PhoneGap events include

Volumedownbutton and so on

Mention The Difference Between Air And Phonegap?

The most fundamental differences between AIR and PhoneGap is that you build AIR applications using tools rooted in the Flash Platform, and you can develop PhoneGap application using HTML, CSS and JavaScript.  AIR applications use the AIR runtime, it enables you to have a single code base, with the exact similar expected behavior through all supported platforms.  PhoneGap applications execute inside of the native web browser component for each supported platform.  For separate platform, PhoneGap may behave differently.

What Is Phonegap And Why To Use It?

PhoneGap is an open source framework, which enables you to develop applications for mobile devices by using web technologies like CSS3, JavaScript and HTML5 instead of using Java for Android, C# for windows phone devices and Objective C or Swift for iOS. It uses the native project format for each platform.

List Out Some Of The Phonegap Api?

Some of the PhoneGap API are

Geo-location and so on

Explain How You Can Upgrade Phonegap?

To upgrade PhoneGap in Mac and Linux:

$ sudo npm install –g phonegap

For Windows:

C:> npm install –g phonegap

Mention What Are The Ios Quirks For A Compass Heading Object?

For a compass heading object the iOS quirks are

trueHeading is returned only when location services are executing through geolocation.watchlocation()

For iOS>4 devices, if the mobile device is revolved or rotated and the app supports that orientation, the heading value will be reported back with respect to the current orientation

Explain What Is Media.seekto And Media.getduration Function In Opengap Media Api?

seekTo in OpenGap Media API is a function that updates the latest position of the underlying audio file of a Media Object

getDuration is a function that returns the duration of the audio file in seconds. It will return the value -1, if the duration is unknown.

Explain What Are The Limitation Of Phonegap?

As the front-end uses JavaScript it does have some limitation

Data processing: Compare to JavaScript native language is much faster

Back-ground processing: Large number of application depends on background thread while PhoneGap API are built using JavaScript which does not support multi-threaded and hence does not support back ground processing

Advanced graphics: Apps that use advanced graphics can be accessed explicitly by third party libraries, which can be best done natively

Complex business logic: Number of complex business app can be accessed better with a native code

Access advanced native functionality: Number of native API’s are not supported by PhoneGap’s API

Mention What Are The Storage Option Does Phonegap Can Access?

Memory-store.js (MemoryStore)
Is-store.js (LocalStorageStore)
Websql-store.js (WebSqlStore)

Explain How Do You Architect Phonegap Applications?

PhoneGap applications can be architect, in the same way, like other mobile web services. The main difference is that the initial HTML assets are available locally, instead of a remote server.  The PhoneGap application loads the initial HTML which can request resources from a server or from the local environment.  PhoneGap also supports the single page web experienced model.

Explain What Is The Best Way For Phonegap Developers To Handle Device-specific Needs?

It all depends on the feature set. Most mobile applications don’t need many device-specific features other than the user interface, but there are numerous plugins which can be very helpful. The best way is to decide what features you need and to use only those specific features. There are many applications that have permissions turned on even if they are not required.

Name Some Of The Limitations Of Phonegap?

Complex games, intensive graphics. Use OpenGL for that, not PhoneGap.
For slower phones (not iPhone, not Nexus One, not Xperia X10), PhoneGap apps using the latest interactive Google Maps APIs tend to be slow. Static maps OK, though.

What Are The Phonegap Supported Platforms?

iPhone / iPhone 3G and Higher
Blackberry OS 5.x and Newer
Web OS
Windows Phone 7

What Does Phonegap Plugin Consist Of? What Are The Files Required To Create Your Own Phonegap Plugin For Ios?

PhoneGap plugin contains two files

JavaScript file that defines the function for accessing the native hooks

Implementation files written in the native language to co-ordinate with native phone features

To create your own PhoneGap plugins, you have to

Make a new directory in your ${PROJECT_DIR}/plugins directory

Make a JavaScript file within that new directory

Make a new Objective-C class that extends the PhoneGap command class and also in the new directory

List Out What Features Are Available In Phonegap Camera Options?

PhoneGap cameraoptions available are

Quality: It tells the quality of saved image that range from [0,100]
Destination Type: Choose the format of the return value. Defined in navigator.camera.DestinationType
Source Type: Set the source of the picture. Defined in navigator.camera
AllowEdit: Before selection of image, it allows simple editing of image
Encoding Type: It determines the encoding type of the returned image
TargetWidth: It determines how you can set image width
TargetHeight: It tells how you can set image height
Media Type: Here you can set the media type to select from

Explain Phonegap Architecture?

PhoneGap has a plugin-based architecture. Each device-specific feature is a plugin, which consists of javascript and native sides. Js side should be as cross-platform as possible, whereas native side can be implemented only once, for 1 device. Nevertheless built-in plugins are developed for all of the most popular platforms, so no need to reinvent the wheel.

This architecture, together with open source code, not only allows a developer to fix their bugs, but also allows them to tweak their plugins for as per requirements. Also, a developer can build his own plugin, and support any platform of his choice.

What Is The Difference Between Phonegap And Cordova?

PhoneGap is a distribution of Apache Cordova. You can think of Apache Cordova as the engine that powers PhoneGap, similar to how WebKit is the engine that powers Chrome or Safari.

How Phonegap Simplifies Mobile Application Development?

Mobile development is a huge task. When we try to build applications for each device--iPhone, Android, Windows Mobile, we require different frameworks and languages.

Till the time, the big players in mobile may decide to work together and unify third-party app development processes, we can use PhoneGap which will use standards-based web technologies to bridge web applications and other mobile devices. Also, since PhoneGap apps are standards compliant, they're future-proofed to work with browser.

PhoneGap is an open source implementation of open standards. That means developers and companies can use PhoneGap for mobile applications that are free, commercial and open source.

Subscribe to get more Posts :