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

[BUG] Cannot capture photo for the first time open camera and grant camera access permission #88

Open
2 tasks done
tiendq opened this issue Feb 14, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels

Comments

@tiendq
Copy link

tiendq commented Feb 14, 2025

Prerequisites

  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Camera work normally.

Current Behavior

Just see camera screen (as Screenshots) and there is no control to capture photo or dismiss camera. Need to kill app.

It only happens for the first time when you need to grant camera access permission. After kill the app and re-run app then camera will work normally.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Open camera for the first time
  2. Grant camera access permission
  3. See camera screen as explained above

Code Sample

MCamera()
      .setCameraOutputType(.photo)
      .setAudioAvailability(false)
      .setCloseMCameraAction({
        debug("Closed camera")
      })
      .onImageCaptured({ image, controller in
        debug("Captured a photo")
      })
      .startSession()

Screenshots

Image

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Name Version
SDK e.g. 3.0.1
Xcode e.g. 16.2
Operating System e.g. iOS 17.7
Device e.g. iPhone 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants