I'm working on an app which includes the ability to choose an image to upload either by taking a picture with the device camera, or choosing an image from the gallery. On all phones we've tried, the gallery opens as a fullscreen overlay, but on the ipads we have to test with the gallery opens as what appears to be a widget.
Screenshot of gallery opened as widget on ipad
How can I disable this behavior in favor of a full screen overlay like on phones?
Below shows the code I'm using to initiate the device camera or gallery:
function showCameraOrAlbum(camera, onSuccess, onFailure) {
navigator.camera.getPicture(onSuccess, onFailure, {
quality: 25,
destinationType: Camera.DestinationType.DATA_URL,
encodingType: Camera.EncodingType.JPEG,
mediaType: Camera.MediaType.PICTURE,
targetWidth: 1242,
targetHeight: 2688,
allowEdit: true,
correctOrientation: true,
sourceType: camera ? Camera.PictureSourceType.CAMERA : Camera.PictureSourceType.SAVEDPHOTOALBUM
})
}