1, install the plug-in, you can also use Ionic plugin add ....
PhoneGap local plugin add HTTPS://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
PhoneGap local plugin add HTTPS://git-wip-us.apache.org/repos/asf/ Cordova-plugin-media-capture.git
PhoneGap Local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
2. Open Android Project, add permission Configuration
-- app/res/xml/plugins.xml
<plugin Name="Camera" value="Org.apache.cordova.CameraLauncher" />
-App/androidmanifest
<uses-permission android:name="Android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name= "Android.permission.CAMERA"/>
<uses-feature android:name= "Android.hardware.camera"/>
<uses-feature android:name= "Android.hardware.camera.autofocus"/>
Example:https://github.com/paulorbpacheco/CameraTest-Cordova.git
Ionic Install photo Select plugin