PhoneGap

How to lock screen orientation to portrait or landscape?

This article will show you how to lock screen orientation to one direction.
Environment Details:
– Phonegap Build – cli-5.2.0
– Device: iPhone S5 9.3.2

For locking orientation to portrait add following code into your config.xml:

For Landscape:

Source: https://github.com/phonegap/build/issues/263 […]

Cordova: How to download file and get download progress?

  […]

Cordova: How to check if a file exists or not?

Above code works for both files and directories.

For Full article with extended features visit Following:
Cordova Sample: Check for a file and download if it isn’t there

Click here for Complete Documentation of cordova.file plugin

  […]

Cordova: How to get list of all Files/Directories in a directory?

Tested in Android.

Click here for more details.

Another link Mobile File Explorer with PhoneGap/Cordova has examples. […]

Cordova: How to create directory?

For Documentation Visit: https://www.npmjs.com/package/cordova-plugin-file#android-file-system-layout […]