dorumrr / npmjs-cordova-honeywell-scanner-simplified

A Ionic/Cordova Honeywell Scanner Simplified Plugin for the built-in barcodes scanner.
https://www.npmjs.com/package/cordova-honeywell-scanner-simplified
MIT License
10 stars 18 forks source link

kill the plugin #1

Closed LukeRasMEL closed 5 years ago

LukeRasMEL commented 5 years ago

Everything works well - My app just seems to be slowing down as I process more scans with the function like its holding cache or opening multiple instances. We are currently calling on the listen function every scan initiation. Is there any way to release or kill the plugin after the scan data so that we dont hold it open or initiate multiple instances.

dorumrr commented 5 years ago

Hi,

I have published an update that includes explicit methods and proper documentation in order to "kill" the plugin by calling .release() when capturing the data from the barcode scanner is no longer needed. Please check the documentation and make sure you're installing the latest version of the plugin, currently 1.3.0