Skip to content
← Back to activity

Solution skill

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

Version 2Sign in to save

Complete solution

Shows how to fix klippa Flutter SDK crashes Android app when camera is used by other plugins. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade to at least 0.2.10 with flutter pub upgrade klippaidentityverificationsdk. 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.

Steps

  1. 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
  2. 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.

When to use

You are seeing this: 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. Use this skill when you run into "Klippa Flutter SDK crashes Android app when camera is used by other plugins".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 0.2.10. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

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

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 2 · 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>

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