-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add continuous scanning support #122
Comments
A work around I have used is to recursively call the scan method after every success until the user clicks cancel |
I would also welcome this feature. It could for example "scan until user clicks done/back button" and then return results in array.. What do you think? |
@Giriton I have just implemented such a workaround. I don't think it's quite as fast or elegant as just leaving the camera open but it does work. On iOS 9.3, the done button returns me to my Web UI, same with a Google Nexus 4 running Android 5.x. My "Samsung Galaxy Tab A" has a weird thing where if I tap the hardware back button to cancel, it closes the camera UI but also triggers a back call in the web ui, in my case either navigating me backwards or dismissing an open modal. So, I need to find a way for the back button, when in the camera UI, to not propagate to the web ui after dismissing the camera UI. |
I agree, continuous scanning is indeed needed for real-world scanning apps. Calling the scan() method recursively works, but it has some lag to it and it decreases performance. Any update on this issue? |
If anyone is willing to implement it: on Android we're using the same library as the NativeScript plugin which I've added continuous scan support to already. All required changes to the native library are already in place, so it should be relatively straightforward to add this to the Cordova plugin as well. On iOS the NativeScript plugin uses my custom library, not the same as the one used in the Cordova plugin, so it may be a little harder. |
+1 calling scan() recursively isn't a great solution |
Duplicate of #69 |
+1 calling scan() recursively has some lag |
This thread has been automatically locked. |
Please add support for continuous scanning, so that the barcode scanner does not close after a successful scan.
This could work like this:
The text was updated successfully, but these errors were encountered: