Giter Club home page Giter Club logo

flutter-klippa-identity-verification-sdk's People

Contributors

hasankucukcayir avatar jerbob92 avatar klaasjelmer avatar robinfarmer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter-klippa-identity-verification-sdk's Issues

Reading a Ukrainian passport results in "ERROR - Wrong length"

Hi!

I've been testing the SDK, and I tried to scan a Ukrainian passport. The reading seems to complete successfully, but then an error page shows up with the following text:

Problem uploading: - NFC Chip data

Here's the log from the console:

2023-04-21 9:53:21.6740 - tagReaderSessionDidBecomeActive
2023-04-21 9:53:24.6540 - tagReaderSession:didDetect - iso7816(<NFCISO7816Tag: 0x282dbabe0>)
2023-04-21 9:53:24.6540 - tagReaderSession:connecting to tag - iso7816(<NFCISO7816Tag: 0x282dbabe0>)
2023-04-21 9:53:24.6550 - tagReaderSession:connected to tag - starting authentication
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.6680 - Error reading tag: sw1 - 0x6B, sw2 - 0x00
2023-04-21 9:53:24.6680 - reason: Wrong parameter(s) P1-P2]
2023-04-21 9:53:24.6680 - Re-selecting eMRTD Application
2023-04-21 9:53:24.6750 - Starting Basic Access Control (BAC)
2023-04-21 9:53:24.6760 - BACHandler - deriving Document Basic Access Keys
2023-04-21 9:53:24.6760 - BACHandler - Getting initial challenge
2023-04-21 9:53:24.6820 - BACHandler - Doing mutual authentication
2023-04-21 9:53:24.7490 - BACHandler - complete
2023-04-21 9:53:24.7490 - BAC Successful
2023-04-21 9:53:24.7490 - Reading tag - DG1
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.7830 - TagReader - Number of data bytes to read - 91
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8110 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8390 - TagReader - Number of data bytes to read - 19726
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8510 - Error reading tag: sw1 - 0x67, sw2 - 0x00
2023-04-21 9:53:24.8510 - reason: Wrong length
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8530 - ERROR - Wrong length
2023-04-21 9:53:24.8530 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8620 - Error reading tag: sw1 - 0x68, sw2 - 0x82
2023-04-21 9:53:24.8620 - reason: Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8630 - ERROR - Secure messaging not supported
2023-04-21 9:53:24.8630 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8750 - Error reading tag: sw1 - 0x68, sw2 - 0x82
2023-04-21 9:53:24.8750 - reason: Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8770 - ERROR - Secure messaging not supported
2023-04-21 9:53:24.8770 - Reading tag - DG2
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8860 - Error reading tag: sw1 - 0x68, sw2 - 0x82
2023-04-21 9:53:24.8860 - reason: Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:24.8870 - ERROR - Secure messaging not supported
[CoreNFC] 00000002 81158d80 -[NFCTagReaderSession setAlertMessage:]:93  (null)
2023-04-21 9:53:27.5870 - tagReaderSession:didInvalidateWithError - Session invalidated by user

For now, I have no other device at hand to test with.

Flutter: 3.7.11
klippa_identity_verification_sdk: 0.0.8
iPhone 7 (iOS 15.7.3)

I found a similar error report here, with another passport scanning library and a Russian passport: AndyQ/NFCPassportReader#89. This may be useful.

Installation issue (iOS)

Hi,

I'm facing an installation issue on iOS of version 0.2.8 (censored absolute path to .pub-cache):

Swift Compiler Error (Xcode): No such module 'KlippaIdentityVerification'
/XXX/.pub-cache/hosted/pub.dev/klippa_identity_verification_sdk-0.2.8/ios/Classes/SwiftKlippaIdentityVerificationSdkPlugin.swif
t:2:7


Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

I tried the following:

  1. Ran flutter clean && flutter pub get -> didn't work
  2. Cleared dependency cache (flutter pub cache clean) -> didn't work
  3. Deleted ios/Pods and ios/Podfile.lock and reinstalled dependencies -> didn't work

Here's the full Podfile (censored sensitive information):

platform :ios, '13.0'

ENV['COCOAPODS_DISABLE_STATS'] = 'true'
ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_USERNAME'] = 'XXX'
ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_PASSWORD'] = 'XXX'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  if "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL']}" == ""
    ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL'] = File.read(File.join(File.dirname(File.realpath(__FILE__)), '.symlinks', 'plugins', 'klippa_identity_verification_sdk', 'ios', 'sdk_repo')).strip
  end

  if "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION']}" == ""
    ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION'] = File.read(File.join(File.dirname(File.realpath(__FILE__)), '.symlinks', 'plugins', 'klippa_identity_verification_sdk', 'ios', 'sdk_version')).strip
  end

  pod 'Klippa-Identity-Verification', podspec: "#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_URL']}/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_USERNAME']}/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_PASSWORD']}/KlippaIdentityVerification/#{ENV['KLIPPA_IDENTITY_VERIFICATION_SDK_VERSION']}.podspec"
  
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',
        'PERMISSION_LOCATION=1',
        'PERMISSION_NOTIFICATIONS=1',
      ]
    end
  end
end

Output of flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale
    en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.90.0)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

Face Verification is failed to showing white screen

Hi,

After completing the data extraction from the document scanning, we faced a white screen like the application crashed while completing the face liveness checking and selfie photos and also got the following error.

E/AndroidRuntime( 3171): java.lang.IllegalArgumentException: bitmap is null
E/AndroidRuntime( 3171): at androidx.core.graphics.drawable.DrawableKt.toBitmap(Drawable.kt:54)
E/AndroidRuntime( 3171): at androidx.core.graphics.drawable.DrawableKt.toBitmap$default(Drawable.kt:46)
E/AndroidRuntime( 3171): at com.klippa.identity_verification.modules.camerascreens.view.a.c(Unknown Source:33)
E/AndroidRuntime( 3171): at com.klippa.identity_verification.modules.camerascreens.view.a$$ExternalSyntheticLambda8.onClick(Unknown Source:2)
E/AndroidRuntime( 3171): at android.view.View.performClick(View.java:7892)
E/AndroidRuntime( 3171): at android.widget.TextView.performClick(TextView.java:16219)
E/AndroidRuntime( 3171): at android.view.View.performClickInternal(View.java:7869)
E/AndroidRuntime( 3171): at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
E/AndroidRuntime( 3171): at android.view.View$PerformClick.run(View.java:30880)
E/AndroidRuntime( 3171): at android.os.Handler.handleCallback(Handler.java:942)
E/AndroidRuntime( 3171): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3171): at android.os.Looper.loopOnce(Looper.java:226)
E/AndroidRuntime( 3171): at android.os.Looper.loop(Looper.java:313)
E/AndroidRuntime( 3171): at android.app.ActivityThread.main(ActivityThread.java:8757)
E/AndroidRuntime( 3171): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3171): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
E/AndroidRuntime( 3171): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

SDK version:
klippa_identity_verification_sdk: ^0.2.2

Please update Klippa to fix the face verification issue ASAP!

Migrate to sound null safety

As of now, Klippa doesn't support sound null safety. Building a Flutter 3 app results in build failure:

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

 - package:klippa_identity_verification_sdk

For now, the --no-sound-null-safety flag can be used to ignore this.

This will change soon with the stable release of Dart 3 (and likely Flutter 4), as sound null safety will be mandatory:

Dart 3—planned for a mid-2023 release—requires sound null safety. It will prevent code from running without null safety, or with unsound null safety. All existing code must be migrated to sound null safety to be compatible with Dart 3. To learn more, see the Dart 3 sound null safety tracking issue.

source

Please update Klippa to support sound null safety.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.