Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ class IonCameraFlow(
}
currentCall = call
manager.takePhoto(activity, settings.encodingType, cameraLauncher)
} catch (_: Exception) {
} catch (ex: Exception) {
android.util.Log.e("Capacitor/Camera", "Failed to launch photo capture", ex)
sendError(IONCAMRError.TAKE_PHOTO_ERROR)
}
}
Expand Down Expand Up @@ -1052,4 +1053,4 @@ class IonCameraFlow(
fun onDestroy() {
cameraManager?.deleteVideoFilesFromCache(activity)
}
}
}
3 changes: 3 additions & 0 deletions ios/Sources/CameraPlugin/CameraPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,9 @@ private extension CameraPlugin {
extension CameraPlugin: IONCAMRCallbackDelegate {

public func callback(error: IONCAMRError) {
if case .takePictureIssue = error {
NSLog("Capacitor/Camera: OS-PLUG-CAMR-0010: %@", error.localizedDescription)
}
sendError(error)
}

Expand Down