Skip to main content

FAQ

Package Variants

Why are there separate packages now?

To ensure optimal performance and meet security requirements for different deployment environments, the SDK is now distributed in separate packages. This architectural change ensures that the appropriate build variant is determined at installation time, providing the right optimizations for each environment.

Which package should I use?

  • Development Package (gbgplc-smartcapture-web-development-vX.Y.Z.tgz): Use for local development, debugging, and automated testing. DevTools and debugging capabilities are fully enabled.
  • Production Package (gbgplc-smartcapture-web-production-vX.Y.Z.tgz): Required for all production deployments. Includes production optimizations and compliance features.

What happens if I accidentally deploy the development package to production?

The SDK will function normally, but you'll miss important production optimizations:

  • Production-specific optimizations will not be applied
  • DevTools will remain enabled
  • Compliance features may not be fully active

Always use the production package for production deployments. If you accidentally deployed the development package, redeploy with the production package immediately.

How do I verify which package I'm using?

Check your project's package.json file under the dependencies section. The filename will indicate the package variant:

  • gbgplc-smartcapture-web-development-vX.Y.Z.tgz = Development package
  • gbgplc-smartcapture-web-production-vX.Y.Z.tgz = Production package

Can I switch between packages without code changes?

Yes! The component API is identical between both packages. Simply:

  1. Update which .tgz file is referenced in your package.json
  2. Run npm install
  3. Rebuild your application

No source code changes are required.

Can I use the development package in staging environments?

Yes, but we strongly recommend using the production package in staging to match production behavior exactly. This ensures your testing environment mirrors production as closely as possible.

Use the development package only for:

  • Local development
  • Debugging issues
  • Automated testing that requires DevTools access

General Questions

Whose responsibility is it to make sure 3rd party dependencies are free from vulnerabilities?

We want to clarify that while we provide our SmartCapture WebSDK with a vetted set of dependencies, customers have the discretion to extend functionality by introducing additional dependencies or using other versions that meet their specific requirements. This is beyond the control of GBG Plc, and we advise customers to conduct their own checks on any new dependencies introduced and take appropriate actions to manage any issues discovered.

Which file formats are supported for integration?

The SDK is distributed as a .zip file containing a .tar package. After extraction, you can install the .tar package locally as an NPM dependency.

Which module systems are supported?

We support all modern ESModules. This ensures compatibility with the latest JavaScript module standards that enable seamless integration in environments that support ESModules. The SDK currently targets ES6 and higher.

How do I handle updates to the SDK?

Download the latest version of the gbgplc-smartcapture-web-vX.Y.Z.zip file and follow the installation steps to replace the existing .tar package in your project.

What are the minimum supported versions for the SDK in each of the platforms?

  • Browser versions:
    Chrome desktop: v103
    Chrome (Android): v112
    Safari desktop: v15.1
    Safari (iOS): v15.0
    Edge: v103
    Firefox desktop: v103
    Firefox (Android): v110

  • OS requirements:
    iOS: 14 and later
    Android: 11 and later

I cannot get the tar file when I directly unzip the SDK file, what should I do?

It must be done through the terminal, please read through this page in documentation (link to the homepage of the documentation) this page in documentation:

What should I do if I encounter installation issues?

Ensure you are using the correct password to extract the gbgplc-smartcapture-web-vX.Y.Z.zip file. For installation issues, verify that your environment supports local dependencies installed from .tar files.

How do I capture the back side of a document with the Document Camera Component?

To capture the back side of a document, set the isOpen property of the LiveDocumentCamera back to true. This will reinitialize the camera and allow for capturing the document's reverse side.


Note:
In all references to vX.Y.Z, this represents the version number of the SDK you are integrating. For example, v1.2.3 would indicate version 1.2.3 of the SDK.