Closed maelp closed 10 months ago
"Read barcode from image" works so I guess the MLKit binding works, it's really the AV capture which doesn't work properly
Did you grant the camera permission?
Yes, but that doesn’t seem to be the issueOn Nov 1, 2023, at 18:29, Robin Genz @.***> wrote: Did you grant the camera permission?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
@robingenz does it work on your device?
@robingenz does it work on your device?
Yes. For this reason I can't debug this issue. If you find the problem, feel free to create a PR.
hmmmm that's weird then... can you tell me what iPhone / iOS you have?
I'm on an iPhone 11, running iOS 17.0.3
Basically, just doing a clone of your repo, npm i
, npm cap build ios
, opening XCode, changing the signing account so that it builds, and running the app... I validate the camera permissions, and there is the bug.
I have tried modifying the swift code a bit, to move stuff on/off the main thread to see if that was the issue, but haven't found the bug
did you try deleting your previously installed demo app, rebuilding from scratch with the latest XCode?
I'm using XCode Version 15.0.1 (15A507)
huh... I retried by just opening the app and it worked... I guess it fails only when I'm using the app while connected to the XCode debugger somehow??
I guess it fails only when I'm using the app while connected to the XCode debugger somehow??
Not on my side. But I'm glad that it's works now.
Describe the bug A clear and concise description of what the bug is.
Cloning this project, following the instructions, the app builds, but the barcode scanner does not work (see video, "start scanning" displays a black screen with the outline but no camera image and no scanning is done even if I point the phone to an image of a QR code, and scan doesn't even show a black screen, just the close and flashlight button on top of the app)
Additionally I had tried before to add the capacitor mlkit barcode scanning plugin in my own app and it had the same behavior so I think the plugin is broken on iOS)
To Reproduce Steps to reproduce the behavior:
Clone the app Follow the build instructions on iOS
Test the barcode scanning function which doesn't work
Expected behavior A clear and concise description of what you expected to happen.
It should show an image, and should run the barcode detector on it
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
iPhone 11 with latest iOS
Additional context Add any other context about the problem here.