Hybrid Application Developer

  Home  Web Development  Hybrid Application Developer


“Hybrid Application Developer related Frequently Asked Questions by expert members with job experience as Hybrid Application Developer. These questions and answers will help you strengthen your technical skills, prepare for the new job interview and quickly revise your concepts”



49 Hybrid Application Developer Questions And Answers

4⟩ How to 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.

 135 views

5⟩ How to upgrade PhoneGap?

To upgrade PhoneGap in Mac and Linux

$ sudo npm install –g phonegap

For Windows:

C:> npm install –g phonegap

 144 views

7⟩ Do you know what is a Plist file in iOS development?

Yes, this is not related to phonegap, but interviewer expects the answer!

Property lists are a way of structuring arbitrary data and accessing it at run-time. An information property list is a specialized type of property list that contains configuration data for a bundle. The keys and values in the file describe the various behaviors and configuration options you want applied to your bundle. Xcode typically creates an information property list file for any bundle-based projects automatically and configures an initial set of keys and values with appropriate default values. You can edit the file to add any keys and values that are appropriate for your project or change the default values of existing keys.

 196 views

9⟩ Tell me what is the difference between PhoneGap and Cordova?

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.

 171 views

11⟩ Tell me what are Activities and Intents?

Activities are like windows to a user interface. Activities play same role of windows for input and output operations though it may not be always in the form of user interface.

Intents display notification messages to the user from within Android device. It can be used to alert the user also for a particular state of the App

 148 views

13⟩ Name some PhoneGap events?

☛ deviceready

☛ pause

☛ resume

☛ online

☛ offline

☛ backbutton

☛ batterycritical

☛ batterylow

☛ batterystatus

☛ menubutton

☛ searchbutton

☛ startcallbutton

☛ endcallbutton

☛ volumedownbutton

☛ volumeupbutton

 140 views

15⟩ Explain 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.

 137 views

16⟩ Tell us 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.

 134 views

17⟩ How to access mobile phone native functionality in Ionic applications, for example the camera?

Ionic does not provide a camera API out of the box. However, since Ionic uses plugins architecture, and because it is based on Cordova, we can use Cordova plugins in our application. Ionic team provides a set of Cordova extensions with Angular wrappers, and they can be found at ngCordova.

To use Cordova plugins, we need to install the plugin using Ionic command install <plugin name>. In some cases, we will additionally need to add the plugin’s Angular module to your Angular application too.

To use a mobile phone’s camera in the Ionic application, we can call the camera API by using cordova-plugin-camera that is hosted on GitHub. This plugin defines a global navigator.camera object, which provides an API for taking pictures and for choosing images from the system’s image library.

 160 views

18⟩ As you know performance of Ionic application is bad on older Android devices. Why is this, and what can be done to improve it?

Ionic framework uses the default web browser available for the device to run its hybrid application. Older versions of Android devices (4.0-4.3) use Android’s default browser, which has significantly less performance and standards compliance than the modern Chrome browser.

One way to resolve this issue is to use crosswalk along with Ionic framework. Crosswalk allows you to package a modern Chrome webview along with Ionic application, so an application does not have to rely on native Android browser. The end results are much better performances and modern web API across all Android versions.

 160 views

19⟩ Explain me how do you pass data from one view to another in Ionic applications?

Ionic uses AngularJS and UI-router. It means you can use Angular services or UI-router’s state resolve to pass data from one view to another. Since Angular services are singletons, data stored in services can be accessed across other Angular controllers.

As mentioned, UI-router provides a resolve configuration. For example:

$stateProvider

.state('todos', {

url: '/todos',

controller: 'TodosCtrl',

templateUrl: 'todos.html',

resolve: {

todos: function(TodosService) {

return TodosService.getTodos()

}

}

})

One advantage of resolve over stateful services is better testing: as resolve injects dependencies in the controller, it is easy to test them.

 121 views

20⟩ Explain me what are the most prominent advantages and disadvantages of building applications using the Ionic framework?

The most obvious advantages are:

☛ Ionic framework builds hybrid applications using web technologies. It means web developers can easily build mobile applications too. Also, because it uses JavaScript, almost the same codebase can be used to build both iOS and Android applications.

☛ Development cost is less compared to native iOS and Android applications.

☛ Ionic framework is excellent for quick application ideas prototyping.

Some of the disadvantages are:

☛ It is not suited for high-end graphics dependent applications or games.

☛ Performances are not as good as native applications, namely animations, scrolling, and network operations.

☛ As mentioned, JavaScript animations are not as performant as native animations. However, there are JavaScript libraries, like tweenMAX, which provide decent animation performance on the devices.

 158 views