Different devices will store saved photographs in different locations, typically in either a photo library or a saved photo album. The camera plugin API gives developers the ability to select or specify from which location an image should be retrieved.
We must use the
getPicture method, available from the
Camera object, to either select an image from the device library, or capture a new image directly from the camera:
camerarollby running this command:
phonegap create cameraroll com.myapp.cameraroll cameraroll
cordova platform add ios cordova platform add android ...