From 47f2dd8ae4206a62ca4ab2b5f28cb834a7a26dbb Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 29 May 2020 15:50:32 +0200 Subject: [PATCH] fix: send error on photos picker dismiss on ios 13 (#3010) --- ios/Capacitor/Capacitor/Plugins/Camera.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Capacitor/Capacitor/Plugins/Camera.swift b/ios/Capacitor/Capacitor/Plugins/Camera.swift index c6ea8eae4d..35a9252810 100644 --- a/ios/Capacitor/Capacitor/Plugins/Camera.swift +++ b/ios/Capacitor/Capacitor/Plugins/Camera.swift @@ -200,6 +200,10 @@ public class CAPCameraPlugin : CAPPlugin, UIImagePickerControllerDelegate, UINav self.call?.error("User cancelled photos app") } + public func presentationControllerDidDismiss(_ presentationController: UIPresentationController) { + self.call?.error("User cancelled photos app") + } + public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { var image: UIImage?