Closed chernandez-bunnings closed 1 year ago
Hi @chernandez-bunnings
Thanks for reporting. We have found the reason but is it still not solved. When running on iOS, the library will initialize the camera module when the app starts. Since the simulator doesn't support a camera, it reports the issue. Also, this is the reason why you receive a camera permission request when the app start.
We are still working on this issue. It might take some time. I will let you know if we find a solution.
One more question. Do you have requirements to read barcodes on a simulator or just testing?
Hello @Dynamsoft-Henry,
Thank you for addressing this. We don't have a requirement to read barcodes in the simulator, but we do have a requirement to have the app working correctly in the simulator (as there are other team members that do not use device to develop or maintain other features in the app). The fact that the app is stuck in the SplashScreen is a big blocker for our development environment and will cause headaches amongst the team.
It is good to know that as soon as you solve this, both issues we currently experience in iOS will go away.
I understand currently it is unknown, but would you have a rough estimate when you would hope for this be solved?
Are the implementation changes of the pod libraries DynamsoftBarcodeReader - 9.6.10 and DynamsoftCameraEnhancer - 2.3.1
a good place to look for the fix? Prior to these versions the simulator worked fine.
Hello @chernandez-bunnings
Hello @Dynamsoft-Henry
Thank you again. I can assure the app would run fine in the simulator in version 1.1.7 (probably prior as well). I downgraded to confirm this. Of course the simulator cannot be used to ensure the camera sdk
works correctly as you require the camera, but that's another topic.
Fingers crossed there is a fix soon, so I'm not forced to downgrade :)
Hello @chernandez-bunnings
Sorry for delay. We fixed the above issues and released a new version, v1.1.11.
We have changes on both React Native and iOS side. As a result, please upgrade the dependency of dynamsoft-capture-vision-react-native.
Hello @Dynamsoft-Henry
Apologies for the late reply, we just resumed development on the scanner feature.
I can confirm that version 1.1.11
addresses the simulator issue and the camera permission workflow for iOS
I will proceed with closing this issue as well as https://github.com/Dynamsoft/capture-vision-react-native/issues/35
However, the TS conflict (https://github.com/Dynamsoft/capture-vision-react-native/issues/32) is still occurring. For now, we are re-patching this new version, but ideally the conflict should be addressed in the sdk typing definitions directly.
Thank you so much for looking into all these issues.
Hello Dynamsoft team,
We noticed that from version
1.1.8
(also present in latest1.1.9
), the app gets stuck in the SplashScreen when the running theios
simulator. Inspecting logs and runtime activity unfortunately does not raise any insightful info or runtime exceptions that can point to the exact issue.However backtracking the change history in our codebase we can clearly see that the issue started when the sdk version was bumped to
1.1.8
The app passes the SplashScreen on devices (
android
andios
) and emulator (android
).We understand that this camera sdk is supported for devices as they're the only ones with camera hardware to validate functionality for
DynamsoftBarcodeReader
andDynamsoftCameraEnhancer
. However version1.1.7
did not experience this issue and the simulator would work fine. We even downgraded thesdk
to validate this is the case.We cannot rely on device only for development purposes as other team members don't use a device to work on other functionality for the app. They may just use a simulator or an emulator. This issue basically will block their local development environment.
Details of the changes that introduced the issue
Podfile.lock
Perhaps this may have been introduced in the pods DynamsoftBarcodeReader (9.6.10) and DynamsoftCameraEnhancer (2.3.1) when
dynamsoft-capture-vision-react-native
version bump from 1.1.7 to 1.1.8?Basically DynamsoftBarcodeReader (9.2.13) and DynamsoftCameraEnhancer (2.3.2) were free of this issue but had other issues such as scanRegion problems.
Could you please have a look and apologies for not offering more details.
Thanks a lot.