This is example code for how to get the camera and upload the picture to remote server with ionic framework.
git clone https://github.com/xifengzhu/ionic-camera.git
note: make sure you already install ionic
make sure you have add the follow plugins, otherwise you can add it with follow command in your terminal.
cordova plugin add org.apache.cordova.camera
cordova plugin add org.apache.cordova.file
cordova plugin add org.apache.cordova.file-transfer
add ios platform ionic platform add ios
build ios version ionic build ios
connect you iphone with you mac, run the app through xcode