Skip to content

Commit

Permalink
fix: send error on photos picker dismiss on ios 13 (#3010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed May 29, 2020
1 parent 22d9a09 commit 47f2dd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Capacitor/Capacitor/Plugins/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 47f2dd8

Please sign in to comment.