https://github.com/apache/cordova-plugin-camera
[check this][1]
The camera.getPicture function opens the device's default camera application that allows users to snap pictures by default - this behavior occurs, when Camera.sourceType equals Camera.PictureSourceType.CAMERA. Once the user snaps the photo, the camera application closes and the application is restored.
[1]: https://i.stack.imgur.com/OMUnl.png
[navigator.camera.getPicture( cameraSuccess, cameraError, [ cameraOptions ] );
Description][1]
Function camera.getPicture opens the device's default camera application so that the user can take a picture (if Camera.sourceType = Camera.PictureSourceType.CAMERA, which is the default).
> Once the photo is taken, the camera application **closes** and your
> application is restored.
[1]: http://docs.phonegap.com/phonegap_camera_camera.md.html#camera.getPicture