I am new to the Cordova CLI.
I need to perform the following steps programmatically via Cordova.
UPDATE: for people want to use camera with iOS >= 10. This mean, by normal you can config in plugin as:
But for now, you can't config NSCameraUsageDescription and NSPhotoLibraryUsageDescription in plugin. You need to config them in platform -> iOS project by Xcode or in *-Info.plist file.
Since iOS 10 it's mandatory to add a NSCameraUsageDescription and NSPhotoLibraryUsageDescription in the info.plist.
Learn more: https://www.npmjs.com/package/cordova-plugin-camera