Follow

How can I optimize battery life when using the Web SDK?

For certain scan-intensive use cases, you may need to optimize your settings for battery life.

You should first try to optimize the scan performance of the Web SDK.

If this is not enough, make sure that you access the camera (see setFrameSource and captureMode.isEnabled parameter) only when needed and release it (see how to pause and stop the scanning) as soon as you do not need to scan anymore. 

Our default settings are optimized for barcode recognition. In some cases, it may be worthwhile to trade off performance for battery life.  You can try the following:

 

 

WebSDK 5.X(Legacy)

 

For certain scan-intensive use cases, you may need to optimize your settings for battery life.

You should first try to optimize the scan performance of the Web SDK.

If this is not enough, make sure that you access the camera (see accessCamera parameter of create()) only when needed and release it (see pauseCamera parameter of pauseScanning()) as soon as you do not need to scan anymore. 

Our default settings are optimized for barcode recognition. In some cases, it may be worthwhile to trade off performance for battery life  You can try the following:

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request