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

Document Scanner only working for first scan in Production/TestFlight release. #136

Open
teefortayyab opened this issue Nov 18, 2024 · 1 comment

Comments

@teefortayyab
Copy link

I have integrated the document scanner and it works fine in debugging release. but when I publish a TestFlight release, it scans for first document. after the successful scan, when I try to open scanner for next scan, it doesn't open camera scanner.

It looks like that Another view is already being presented and this could be why it's not displaying the scanner. It also not throwing any error as well. I have tried customizing the DocScanner.Swift and DocumentScanner.Swift files but it doesn't work fine in Production. Though, it's seamless in Debug mode.

Let me know how I can help further assist with it. It'd be really helpful for any quick response. @dmarcs @mateusz1913 @nicolascavallin @ghorbani-m @brennansaul

@brewaiMing
Copy link

I got the same issue here, so I connected my phone and opened the app in Xcode to investigate. While there were no error logs, I noticed a warning when trying to open the document scanner:

Unbalanced calls to begin/end appearance transitions for <RCTModalHostViewController:>

So this issue might caused by multiple modals being open simultaneously, including the document scanner. however, I add a line of code to close the previous modal still not working, so I add a setTimeout on document scanner code block so it will open after 100ms. and it fix the issue

Some related link that I been through:

"Unbalanced calls to begin/end appearance transitions" warning when push a view in a modal way in XCode 4 with Storyboard

Unbalanced calls to begin/end appearance transitions for <FirstViewController: 0x2a2c00>

Hope this is helpful!

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

No branches or pull requests

2 participants