Code Monkey home page Code Monkey logo

blinkcard-ios's People

Contributors

cerovec avatar dcubelic avatar dodoent avatar heefan avatar jcular avatar juraskrlec avatar mijo-gracanin avatar mskrilj avatar tcvetkovic avatar tonikreso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blinkcard-ios's Issues

Getting recognizer's results after scanning only the first side of the card

Hi,
We are a happy client of Microblink products (pdf417), currently we are adding capabilities to scan debit/credit cards in our app, our flow does not require the customer to scan the 2 sides of their cards, for several reasons we need the customer to enter their CVV by themselves, is there any way to receive the recognizer's results after scanning the first side of the card.
we run the following version:
iOS iPad supporting everything from iOS 12
PPBlinkID, '~> 5.9.0'
MBBlinkCard, '~> 2.0.0'

Direct processing API always returns empty

I followed the readme documentation to set up a scanner example.
The scanner overlay view controller works well but the direct processing API always returns empty.

func recognizerRunner(_ recognizerRunner: MBCRecognizerRunner, didFinishScanningWith state: MBCRecognizerResultState) always returns empty results.

Screen Shot 2021-06-16 at 11 36 33

Does this API require an additional setup?

Localization documentation for iOS seems to be outdated

Hello.
Seems like the localization documentation posted on Github is outdate.
I'm following the steps posted there, but it doesn't work.

My doubt is: How can I insert the localization file?

My code:
`let settings: MBCBlinkCardOverlaySettings = MBCBlinkCardOverlaySettings()
settings.enableEditScreen = false

    /** Crate recognizer collection */
    let recognizerList = [CardScanHandler.blinkCardRecognizer!]
    let recognizerCollection: MBCRecognizerCollection = MBCRecognizerCollection(recognizers: recognizerList)

    /** Create your overlay view controller */
    let blinkCardOverlayViewController = MBCBlinkCardOverlayViewController(
        settings: settings,
        recognizerCollection: recognizerCollection,
        delegate: cardScanOverlayViewControllerDelegate)

    /** Create recognizer view controller with wanted overlay view controller */
    let recognizerRunneViewController: UIViewController = MBCViewControllerFactory.recognizerRunnerViewController(withOverlayViewController: blinkCardOverlayViewController)!

`

Your github:
Captura de Tela 2021-11-16 às 13 09 04

Support for iOS 12

Could you please elaborate on why the SDK not longer supports iOS 12.

Thank you.

Crash with MBRecognizerRunnerViewController

What?

We are experiencing some crashes which seem to occur after displaying MBRecognizerRunnerViewController. Our crash stack trace looks like:

3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
2 +[_CFXNotificationTokenRegistration keyCallbacks]
1 objc_exception_throw

We have logs in each app screen, and the flow always look pretty similar. Consider that we have defined MBRecognizerRunnerViewController with screen name card_camera_reader. You can see in the examples that after passing through this screen, couple of secs afterwards a crash occurs:

Example 1 Example 2 Example 3 Example 4
Screenshot 2020-09-17 at 12 12 00 Screenshot 2020-09-17 at 12 11 52 Screenshot 2020-09-17 at 12 11 44 Screenshot 2020-09-17 at 12 11 36

Observations

  1. We have the hypothesis that the stack trace is a result of symbolication failure. Good symbolication is hard, so issues like this are not uncommon in third-party crash reporters.
  2. After reading different articles, I conclude that UI issues frequently result in that stack trace:

I would really appreciate if you are able to help us with this issue considering that it's now affecting the user experience in Verse app:

Screenshot 2020-09-16 at 12 05 16

Test plans fail to build

Hi,
We encounter an issue after integrating Microblink libraries, BlinkId and BlinkCard, we are able to build, run and archive our app, but we can not build the app for test plans, when we try to run any test, we get the following error:

Multiple commands produce '/Users/ygdev/Library/Developer/Xcode/DerivedData/Sunbit-gqkznxfxghbfkwbgncsntljjorfr/Build/Products/Debug-iphonesimulator/cocoapods-artifacts-Debug.txt':
1) That command depends on command in Target 'pos' (project 'pos'): script phase “[CP] Prepare Artifacts”
2) That command depends on command in Target 'posTests' (project 'pos'): script phase “[CP] Prepare Artifacts”

We observed that adding these 2 libraries via CocoaPods adds the following phase to all targets in the project:

               10E29A52893222C8752510C3 /* [CP] Prepare Artifacts */ = {
                       isa = PBXShellScriptBuildPhase;
                       buildActionMask = 2147483647;
                       files = (
                       );
                       inputPaths = (
                               "${PODS_ROOT}/Target Support Files/Pods-pos demo/Pods-pos demo-artifacts.sh",
                               "${PODS_ROOT}/MBBlinkCard/BlinkCard.xcframework",
                               "${PODS_ROOT}/PPBlinkID/Microblink.xcframework",
                       );
                       name = "[CP] Prepare Artifacts";
                       outputPaths = (
                               "${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
                       );
                       runOnlyForDeploymentPostprocessing = 0;
                       shellPath = /bin/sh;
                       shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-pos demo/Pods-pos demo-artifacts.sh\"\n";
                       showEnvVarsInLog = 0;
               };

Application details:

Xcode v12.3

pod 'PPBlinkID', '~> 5.9.0'
pod 'MBBlinkCard', '~> 2.0.0'

Crash: Thread 1: "Your license key is invalid! Please check if you have all wanted rights."

BlinkCard version 2.6.0
macOS 12.6
iOS 15+
Xcode 14.1
using SPM

I am using MBCMicroblinkSDK.shared().setLicenseResource("license-key-file", withExtension: "txt", inSubdirectory: "directory-to-license-key", for: Bundle.main, errorCallback: block) API for scanning purpose with following directory structure

I am using this API by 2 different directory structure approaches as follows

Approach 1 BlinkCardLicenseKey.txt from /Resources directory

BlinkCardAdapter.swift

MBCMicroblinkSDK.shared().setLicenseResource(
     "BlinkCardLicenseKey",
      withExtension: "txt",
      inSubdirectory: "ScanCard/Resources",
      for: .main) { _ in }

ScanningCard Project/
|
|——> ScanningCard.xcodeproj
|——> ScanCard/
| ---------------> Resources/BlinkCardLicenseKey.txt
| ---------------> core/.../Adapters/BlinkCardAdapter.swift

Approach 2 BlinkCardLicenseKey.txt from projects's root directory where .xcodeproj exists

BlinkCardAdapter.swift

MBCMicroblinkSDK.shared().setLicenseResource(
     "BlinkCardLicenseKey",
      withExtension: "txt",
      inSubdirectory: nil,
      for: .main) { _ in }

ScanningCard Project/
|——> ScanningCard.xcodeproj
|——> BlinkCardLicenseKey.txt
|——> ScanCard/
| ---------------> core/.../Adapters/BlinkCardAdapter.swift

Even with both approach I am still seeing the same crash

Screenshot 2023-01-04 at 3 49 57 PM

If I use this API MBCMicroblinkSDK.shared().setLicenseKey("LICENSE-KEY", errorCallback: block) then it is working as expected.

Am I using inSubdirectory param in correct way in which it is supposed to be. ?

License has expired for Sample Project

I was trying to check is the framework will suit my needs, but apparently the license key in Sample Project has expired on December 11 2019. Could you please update it?

Unable to install the SDK via SPM

Hi,
I got the following error while trying to install the SDK with Swift Package Manager.
Error:

Showing All Messages
downloaded archive of binary target 'BlinkCard' does not contain expected binary artifact 'BlinkCard.xcframework'

Xcode 12.3

Cannot use version 2.9.0 as SMP - No exact Version

Hi
While trying to add exact latest version 2.9.0 as SPM, I am getting an error that "No Version match to exact version 2.9.0...."
I tried to do that on your Sample application as SPM
What am I doing wrong?

Screenshot 2024-02-08 at 13 16 49 Screenshot 2024-02-08 at 13 17 06

MBCscanningRegionForFrameInBounds

OS Info: 15.6.1
Device Info: iPad 8th Gen
Description: On production enviroment i saw this crash, this is not able to reproduce though here is the stack trace for bug info i got. Wild guess this is crashing while presenting the view controller.

StackTrace:
Crashed: com.microblink.frame.processing
0 BlinkCard 0x23eb10 MBCscanningRegionForFrameInBounds + 1901760
1 BlinkCard 0x23eb10 MBCscanningRegionForFrameInBounds + 1901760
2 libdispatch.dylib 0x3a30 _dispatch_client_callout + 20
3 libdispatch.dylib 0xb124 _dispatch_lane_serial_drain + 668
4 libdispatch.dylib 0xbc80 _dispatch_lane_invoke + 392
5 libdispatch.dylib 0x16500 _dispatch_workloop_worker_thread + 648
6 libsystem_pthread.dylib 0x10bc _pthread_wqthread + 288
7 libsystem_pthread.dylib 0xe5c start_wqthread + 8
Screenshot 2023-06-16 at 5 26 38 PM

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.