Interview Questions (2/2): PhoneGap & Cordova (Copy)

What are the storage options PhoneGap can access?

  • Local Storage

  • WebSQL [Android, Blackberry, iOS, Tizen]

  • IndexedDB [Blackberry 10, Windows 8]

  • File API

Name few Hybrid Application Frameworks?

PhoneGap, Sencha, WorkBench, Blackberry WebWorks, Worklight, Titanium, etc.

How to test or debug PhoneGap apps?

  • Using device simulator / emulator

  • Running the app on a physical device

  • Ripple Mobile Environment Emulator [RMEE]

  • Web Inspector Remote [Weinre]

  • FireBug Plug-in in Mozilla Firefox

  • Ionic view [if using Ionic framework].

What are the commands to create and run an app using PhoneGap?

  • Install the phonegap from the Node.js command prompt using the following command.

npm install -g phonegap

  • Create the phonegap app using the following command. Here, my-app is the name of the app

phonegap create my-app

  • Run the phonegap app for the desired platform as follows. Here, android is the desired platform.

phonegap run android

Previous
Previous

Native platform Code in a PhoneGap / Cordova Project

Next
Next

JQuery DataTables