Klippa Flutter SDK crashes Android app when camera is used by other plugins

In a Flutter app using klippaidentityverificationsdk 0.2.10 on Android, opening the camera from another plugin (e.g. imagepicker) after a Klippa document-scan session crashed the app instantly. The SDK's onActivityResult handler (KlippaIdentityVerificationSdkPlugin.kt) was triggered by camera results belonging to other plugins even after the Klippa session closed, causing the crash. Without any Klippa session started, other plugins used the camera fine.

Fixed in klippaidentityverificationsdk 0.2.10 — the maintainer pointed to a change in how the SDK handles the activity result, and the reporter confirmed the crash is gone after updating. Upgrade to at least 0.2.10 with flutter pub upgrade klippaidentityverificationsdk. Source: https://github.com/klippa-app/flutter-klippa-identity-verification-sdk/issues/33

Source: https://github.com/klippa-app/flutter-klippa-identity-verification-sdk/issues/33