Migration
Last updated
Was this helpful?
Last updated
Was this helpful?
This guide walks you through upgrading from the deprecated v1 SDK to v2.
Refer to the full install instructions:
New SDK v2:
Deprecated v1:
Pin to v2.0.0:
Or auto-update within v2:
Initialization
v1 event listener imagesComputed
is removed.
v2 uses smart-camera-web.publish
for events.
Event Payload
The event detail for smart-camera-web.publish
is still the same as imagesComputed
Listen for the same smart-camera-web.publish
event:
v2 is fully modular. You can compose your own flow—selfie only, ID document only, or any combination/order you prefer. See for more examples
Review the v2
Explore more v2 examples in