Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix document camera not available crash #69

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

kreativityapps
Copy link

In crashlytics I can see several iOS crashes with:

specialized SwiftCunningDocumentScannerPlugin.handle(_:result:)
NSGenericException - Document camera is not available
cunning_document_scanner
SwiftCunningDocumentScannerPlugin.swift:19

This PR fixes it by checking if the camera is supported before using it.

@jachzen jachzen merged commit 95d7c71 into jachzen:master Jun 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants