diff --git a/camera/camera.ios.ts b/camera/camera.ios.ts index 54d30d5b8..6887901d9 100644 --- a/camera/camera.ios.ts +++ b/camera/camera.ios.ts @@ -95,7 +95,9 @@ export var takePicture = function (options): Promise { } if (reqWidth && reqHeight) { listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { width: reqWidth, height: reqHeight, keepAspectRatio: keepAspectRatio, saveToGallery: saveToGallery }); - } + } if (saveToGallery) { + listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { saveToGallery: saveToGallery }); + } else { listener = UIImagePickerControllerDelegateImpl.new().initWithCallback(resolve); }