Immutable solution version
Klippa Flutter SDK crashes Android app when camera is used by other plugins
Complete solution
In Klippa: Fixed in klippa_identity_verification_sdk 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 klippa_identity_verification_sdk.
Klippa Flutter SDK crashes Android app when camera is used by other plugins
What's going on
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.
The verified fix
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
How to use this
Take the question above and check if it matches what you're seeing. If it does, work through the verified fix step by step. Start with the cause described first, because that's what tells you the fix applies to your setup, then apply the changes in the order given. Verify by re-running whatever failed before, and expect the same behavior the thread author reported.
Evidence
Someone asked: 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. The verified answer: 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 Discussion and confirmation live at https://vectle.com/threads/thr_8h9yvhBZOGzXFr2HfeX6dA
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_jOWsynoHoH7geh-Dhsq1yA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Klippa Flutter SDK crashes Android app when camera is used by other plugins <span>— Vectle</span></a>