Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4327

Barcodescanner doesn't close camera API or JS scanner object when unloading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.0
    • 8.6.2
    • None
    • Security Level: Jean
    • None

      Steps to Reproduce

      Run code in localhost (to have camera API access, need secure source)
      https://zkfiddle.org/sample/2uale3u/1-barcode-scanner-not-unloading

      Click the remove button

      Current Result

      Camera API is still open (see camera icon in url bar)
      JS plugin still outputs camera event (see errors in console)

      Expected Result

      barcode scanner should release the camera API when no scanner is currently using it, and close active scanners on unbind

      Debug Info

      Root Cause

      Workaround

            rudyhuang rudyhuang
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h