Skip to main content
Back to Overview
Platforms

Common Web integration issues

Scanbot SDK initialization is slow, how do I improve this?

WebAssembly binaries are heavy, but all modern browsers cache them. Here's how to speed things up:

Only your first load takes time. After that, browsers fetch the wasm binaries from cache, and they'll load in about one second regardless of connection speed.

Plus: Use modern brotli compression (see device support: Brotli Accept-Encoding/Content-Encoding) to reduce download size for users by about 60%.

Is there a configuration to turn on the torch function (flashlight) for mobile cameras?

On Android devices, only Chrome supports torch control. Starting with iOS 17.4, all supported browsers on iOS offer torch control functionality. Check the documentation for details here.

What Aspect Ratio for the barcode view-finder is ideal?

For barcode scanning, the recommended Aspect Ratio is either 2:1 or 3:1.

Is there a setting to control exposure in the API?

While there is an option for exposure control and other advanced camera settings, please note that these features are unstable. Their performance can vary significantly depending on the device and browser being used.

How can I address focus issues on iPhone 14, 14 Pro Max, 15, and 15 Plus?

This occurs because these models have a larger minimal focus distance. That's most likely because of the increased size of the camera sensor combined with the new optical formula. Default to the wide-angle camera using:

IBarcodeScannerHandle.switchCamera("Back Ultra Wide Camera");

Code block showing license key variableCode block showing license key variable