[ 25+ ] PhoneGap Interview Questions & Answers [BEST & NEW] - 2020
PhoneGap Interview Questions and Answers

[ 25+ ] PhoneGap Interview Questions & Answers [BEST & NEW]

Last updated on 04th Jul 2020, Blog, Interview Questions

About author

Ranjith (Sr Technical Manager )

He is a Proficient Technical Expert for Respective Industry Domain & Serving 8+ Years. Also, Dedicated to Imparts the Informative Knowledge's to Freshers. He Share's this Blogs for us.

(5.0) | 16547 Ratings 2247

Here you will get all the information about Phonegap jobs such as job vacancies at different locations. You can search and apply for the best ones based on your qualifications, skills and experience. In a Phonegap job you will learn to develop hybrid apps and get a chance to know about the architecture of a mobile app. A Phonegap job will help you gain experience in designing and building applications for the Android platforms, along with APIs and third-party libraries.

1) What Is Phonegap?

Ans:

  • PhoneGap is an open source solution for building cross-platform mobile apps with standards-based Web technologies like HTML, JavaScript, CSS.
  • It is a wrapper used for native packaging of mobile web application which is used to build cross platform mobile Application.

2) Who Developed Phonegap ?

Ans:

  • It is developed by Nitobi, a company based in Vancouver, Canada.
  • Nitobi was acquired by Adobe Corporation on the year of 2011.
  • After the acquisition Adobe released PhoneGap technology as open source under the name Apache Cordova.
  • C Interview Questions

3) Explain Phonegap Architecture?

Ans:

  • 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.

4) Why Should Mobile Developers Consider Phonegap?

Ans:

Mobile developers use PhoneGap because it allows them to have a common codebase for all their application code. It doesn’t force developers to reinvent the wheel every time they move from platform to platform.

5) How Does Phonegap Simplifies Mobile Development?

Ans:

  • Building applications for each device–iPhone, Android, Windows Mobile and more–requires different frameworks and languages.
  • One day, the big players in mobile may decide to work together and unify third-party app development processes.
  • Until then, PhoneGap will use standards-based web technologies to bridge web applications and mobile devices. Plus, because PhoneGap apps are standards compliant, they’re future-proofed to work with browsers as they evolve.
  • PhoneGap is an open source implementation of open standards. That means developers and companies can use PhoneGap for mobile applications that are free, commercial, open source, or any combination of these.

6) What Are The Platforms That Phonegap Supports ?

Ans:

The platforms phone gap supports are:

  • iphone/iphone 3G and Higher
  • Blackberry os 5.x and Newer
  • Android
  • Web OS
  • Tizen
  • Windows Phone 7
  • Symbian
  • Bada

7) What Is Phonegap Features?

Ans:

  • It is not only the purpose of PhoneGap to distribute the web application to application store.
  • It is also providing the feature to access the device hardware from web application.
  • It allows you to package your mobile web application code and resources into a binary app and ready to distribute to Apple, Android, Palm, Symbian, and BlackBerry devices.

8) Advantages Of Phonegap ?

Ans:

  • One codebase can be maintained for multiple  platforms
  • Reuse existing web developer skills
  • Faster development
  • Based on open standards

9) What Is Phonegap Cordova ?

Ans:

  • Mobile market is huge with bunch of opportunities. At the same time it is really painful experience for the developers to make an application reach to the wider audience.
  • There are multiple platforms like android, iPhone, Blackberry, windows comes with lot different capabilities. Every platform uses different programming language syntax and different distribution process.
  • As the programming platforms are different, developing an application requires putting the separate development effort for different platforms.

10) What Is The Difference Between Phonegap And Cordova?

Ans:

  • PhoneGap was donated to the Apache Software Foundation (ASF) under the name Apache Cordova. Through the ASF, future PhoneGap development will ensure open stewardship of the project. It will remain free and open source under the Apache License, Version 2.0.
  • PhoneGap is an open source distribution of Cordova. Think about Cordova’s relationship to PhoneGap like WebKit’s relationship to Safari or Chrome.

11) What Is Phonegap Build, And How Is It Different From Phonegap Framework?

Ans:

  • PhoneGap is a mobile application development framework, based upon the open source Apache Cordova project.It allows you to write an app once with HTML, CSS and JavaScript, and then deploy it to a wide range of mobile devices without losing the features of a native app.
  • PhoneGap Build is a cloud-based service built on top of the PhoneGap framework.
  • It allows you to easily build those same mobile apps in the cloud. 

12) What Is A Hybrid App?

Ans:

  • A hybrid application is one that has features of both a web application and a native application. Certain features, such as Image Capture, NFC or Android OpenAccessory, may be implemented natively since there is currently no way to do this in JavaScript.
  • But the application logic and the UI are implemented using web technologies to allow for a consistent and unique user experience across devices.

13) What Are The Phonegap Events

Ans:

 The phone gap events are listed below:

  • deviceready
  • pause
  • resume
  • online
  • offline
  • back button
  • battery critical battery low
  • battery status
  • menu button
  • search button
  • startcall button
  • endcall button
  • volume down button
  • volume up button

14) Can You Use Php/asp/jsf/java/.net With Phonegap?

Ans:

A PhoneGap application may only use HTML, CSS, and JavaScript. However, you can make use of network protocols (XmlHTTPRequest, Web Sockets, etc) to easily communicate with backend services written in any language. This allows your PhoneGap app to remotely access existing business processes while the device is connected to the Internet.

15) How Much Does Phonegap Cost?

Ans:

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

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

Ans:

  • 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

17) Explain How You Can Upgrade Phonegap?

Ans:

  • To upgrade PhoneGap in Mac and Linux
  • $ sudo npm install –g phonegap
  • For Windows:
  • C:> npm install –g phonegap

18) Explain What Are The Limitation Of Phonegap?

Ans:

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 API89

19) Mention What Are The Storage Option Does Phonegap Can Access?

Ans:

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

20) List Out Some Of The Phonegap Api?

Ans:

Some of the PhoneGap API are

  • Accelerometer
  • Camera
  • Capture
  • Compass
  • Connection
  • Contacts
  • Device
  • Geo-location and so on

    Subscribe For Free Demo

    21) Explain What Do You Need To Develop In Phonegap?

    Ans:

    • IOS: Xcode, iOS SDK
    • Android: Android SDK, ADT plugin
    • BlackBerry: Sun SDK, Apache ant and BlackBerry Webworks SDK
    • Symbian: SDK

    22) Mention What Is The Difference Between Phonegap And Phonegap Build?

    Ans:

    • 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.

    23) List Out Some Of The Phonegap Events?

    Ans:

    Some of the PhoneGap events include

    • Pause
    • Resume
    • Deviceready
    • Offline
    • Endcallbutton
    • Volumedownbutton and so on

    24) Mention The Difference Between Air And Phonegap?

    Ans:

    • 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.

    25) Explain How Do You Architect Phonegap Applications?

    Ans:

    • 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.

    26) List Out What Features Are Available In Phonegap Cameraoptions?

    Ans:

    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 heig
    • Media Type: Here you can set the media type to select from

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

    Ans:

    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

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

    Ans:

    • 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

    29) What is Phone Gap and why do we use it?

    Ans:

    Phone Gap and its use:

    • It is open source framework, which enables the user for developing applications for the mobile phones with the use of web technologies like HTML5, CSS3 and JavaScript instead of the usage of C# for windows phones, Java for Android and Swift or Objective C for iOS.
    • The Phone Gap uses native project format for every platform.

    30) What do we need to develop in Phone Gap?

    Ans:

    • In Phone Gap, we need the following things for different operating systems:
    • For iOS: iOS SDK (System Development Kit), XCode is required.
    • For Android:  Android SDK and ADT (Android Development Tools) plugin are required.
    • For BlackBerry: Apache ant, Sun SDK, and BlackBerry Webworks SDK are required.
    • For Symbian: Only System development toolkit is required.
    Course Curriculum

    Learn Experts Curated Phonegap Training to Build Your Skills & Ability

    • Instructor-led Sessions
    • Real-life Case Studies
    • Assignments
    Explore Curriculum

    31) List and Explain some of the Phone Gap events?

    Ans:

    Some of the events of Phone Gap are:

    • Pause: The pause event is emitted when the user switches away from the app and it is put in the background
    • Resume: The resume event is emitted when the app is brought back into the foreground. It is the inverse of pause.
    • Deviceready: The deviceready event is emitted when the Cordova is fully loaded, and APIs of the device provide information which your applications are ready to use.
    • Offline: The offline event is produced when the device goes offline.
    • Online: The Online event is produced when the device goes online. It is the inverse of the offline event.
    • Endcallbutton: The end call button also called a power button is used to end the call.
    • Volumedownbutton: The volume button is used to manage the volume of the device’s sound.

    32) Distinguish between Phone Gap and Phone Gap build?

    Ans:

    Phone Gap:

    • Phone Gap is a framework for the mobile development. It is built on an open source called the Apache Cordova project.
    • This permits the user to write an app with HTML, CSS, JavaScript and then it is deployed to a wide range of mobile phones without losing the native app features.

    Phone Gap Build:

    • It is the cloud-based service, which has been built on the top of the Phone Gap framework

    33) Mention features available in the Phone Gap Cameraoptions?

    Ans:

    The available features in Phone Gap Cameraoptions are:

    • Quality: This feature tells the user the quality of the saved image that ranges from [0,100]
    • Destination Type: This feature helps you Choose formats of return value. Defined in navigator.camera.Destinationtype.
    • Source Type: This feature sets the source of the image. Defined in navigator.camera.
    • AllowEdit: Before selection of a picture, this feature lets you do simple editing of the image.
    • Encoding Type: This feature determines the encoding type of returned image.
    • TargetWidth: This feature allows you to set the image width.
    • TargetHeight: This feature lets you set the image height.
    • Media Type: Through this feature, you are able to set media type to be selected from.

    34) Describe the drawbacks of the Phone Gap?

    Ans:

    As JavaScript is used on the front end, it has some drawbacks too.

    • Following are the few drawbacks of Phone Gap:
    • Data processing: In comparison with JavaScript, the native language is much faster.
    • Background processing:  The large number of applications are dependent on the background thread while Phone Gap API is built by using JavaScript that doesn’t support any multi-threaded options and hence it doesn’t support the background processing as well.
    • Advanced graphics:  The applications that use the advanced graphics can easily be accessed by the third-party libraries and can also be done natively.
    • Complex business logic: A large number of complex business applications can be accessed better with a native code.
    • Access advanced native functionality: A large number of native API’s are not supported by the Phone Gap’s API.

    35) Mention the storage options that Phone Gap can access?

    Ans:

    The Phone Gap can access the following Storage options:

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

    36) Explain how can you architect the Phone Gap Applications?

    Ans:

    • The Phone Gap applications can be architected just like any other mobile web service. The radical difference in it is the initial HTML asset that is available locally, instead of the remote server.
    • The Phone Gap application loads initial HTML that requests the resource from the server or from the local environment. The Phone Gap supports single page web experienced model.

    37) Distinguish between AIR and Phone Gap?

    Ans:

    • The most fundamental difference between AIR and Phone Gap is that the user is able to Build the AIR applications by using tools that are rooted in the Flash Platform, while the user can develop Phone Gap application by using CSS, HTML, and JavaScript.
    • The AIR application uses AIR runtime, which enables users to have the single code base, along with an exact and similar behavior expected through all the supported platforms.
    • The Phone Gap applications execute inside a native web browser component for every platform supported. For the separate platforms, Phone Gap may behave differently and accordingly.

    38) Who developed Phone Gap?

    Ans:

    • The Phone Gap is developed by the company Nitobi, which is based in Vancouver, Canada.
    • Nitobi company was acquired in the year 2011 by Adobe Corporation.
    • Later after an acquisition, Phone Gap technology was released by Adobe as an open source under Apache Cordova as the name.

    39) Why should the Phone Gap get considered by the mobile developers?

    Ans:

    The Mobile developers use Phone Gap because it lets the developers have a common codebase for all of the application codes.It does not force the developers from reinventing the wheel each time they move from one platform to the other.

    40) What is the cost of purchasing PhoneGap?

    Ans:

    PhoneGap is standardized with open source implementation where the source code is available to everyone. Therefore, you don’t have to pay any cost. It is entirely free. Any developer or company can make any commercial, open source, free or any such combination with the help of the mobile application.

    Phonegap Sample Resumes! Download & Edit, Get Noticed by Top Employers! Download

    41) Is it possible to use PHP/.NET/ASP/JAVA/JSF with the PhoneGap?

    Ans:

    It only uses the codebase CSS, HTML and JavaScript. But, however, it could allow using these remotely depending on the use of the developer.

    42) What do we use the platform of PhoneGap?

    Ans:

    It is basically an open-source software which allows the developer to develop the application for the mobile phone using the codebase like JavaScript, HTML5, and CSS3, while in an earlier era it was focused with languages like C and Java

    43) What is PhoneGap User Interface?

    Ans:

    The major platforms are used to create PhoneGap App UI – JavaScript, CSS and HTML.

    • On Android – it is android.webkit.WebView
    • On IOS – it is Objective-C UIWebView class

    The User Interface has web browser view of 100% (Height X Width) of the screen

    44) What is the basic constituent of the PhoneGap plugin?

    Ans:

    The basic constituent of PhoneGap plugin are two types of files that is, an implementation file and other is a JavaScript file. The Plugins are known as Name, Spec, Source and Params and the Gap Plugins are Name, Version, Source, Params.

    45) What is the role of implementation file in PhoneGap?

    Ans:

    The implementation file helps the PhoneGap to build up the coordination with the original phone features.

    46) Explain with the help of program how to upgrade the PhoneGap in Linux, Mac and Windows?

    Ans:

    • To Upgrade PhoneGap in Linux and Mac:
    • $Sudo nmp install-g PhoneGap
    • To Upgrade PhoneGap in Windows:
    • C:/> nmp install-g PhoneGap

    47) Give some examples of the platforms which are supported by the PhoneGap?

    Ans:

    Android, Tizen, Blackberry OS, Bada, Symbian, Windows etc. However, the earlier versions did support other mobile platforms but then the support was taken back from these platforms.

    48) What is the PhoneGap architecture.

    Ans:

    • PhoneGap has a plugin-based architecture. Each device-specific feature is a plugin, which consists of javascript and native sides.Javascript 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.

    Are you looking training with Right Jobs?

    Contact Us
    Get Training Quote for Free