Giter Site home page Giter Site logo

dynamsoft / capture-vision-cordova-samples Goto Github PK

View Code? Open in Web Editor NEW
5.0 8.0 8.0 49 KB

Dynamsoft Capture Vision Cordova SDK Samples

License: Other

JavaScript 25.01% CSS 43.73% HTML 31.26%
cordova-plugin cordova barcode-reader ios android mobile-barcode 1d-barcode barcode datamatrix document-scanner

capture-vision-cordova-samples's People

Contributors

dynamsoft-henry avatar dynamsoft-jerson avatar dynamsoftallen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capture-vision-cordova-samples's Issues

iOS issue

I have working on IONIC project and i have stucked at one point of scanner issue.
Can you please once look with this demo and please help me on this issue.

DEMO CODE: https://www.dropbox.com/s/h23268kr9bdalhv/qr-code-dynamosoft.zip?dl=0

ISSUE:

I have created one scanner.js file which contains scanner methods like createInstance, startScanner and stopScanner.
And two different pages are created "Test Page 1" & "Test Page 2"

So first we open scanner from anyone of the page from above and scanner works (WITH OPEN CAMERA VIEW)
But if we go to another page and then open scanner then it's not works fine. There is CAMERA VIEW is not open but scanning of barcode is works.

So basically if you first go to the "Test Page 1" and start scanner then works fine (OPEN CAMERA VIEW and Barcode scans perfectly) then you go to the another page "Test Page 2" and start scanner then it's not works like "NOT OPEN CAMERA VIEW but scanning of barcode is works without open CAMERA VIEW".

Can you please help me on this what was the issue on this ??? I really needs help on this please ....

Steps for generate IOS build:

  • npm i
  • ionic cordova prepare ios
  • Open ios project to XCODE and run it on device

iOS issue

Hello @Dynamsoft-Henry

From here: #47
There is new issue happened on IOS devices.

When i was testing, if i open scanner first time then it's work fine to show green-box (scan region)
And if i open it second time green-box (scan-region) not appears but it scans properly, but as per user experience it's not looks good.

I'm using this plugins "develop" branch.

So basically i needs green-box always when we open scanner.

Android build error

Hi,

I'm getting an error building with this plugin:

app:preDebugBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find :dbr:.

Node version: v8.15.0
Cordova version: 8.0.0
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-28,android-27,android-26
Gradle: installed /usr/local/Cellar/gradle/5.1/bin/gradle

Fatal Exception: java.lang.IllegalStateException

Hello @Dynamsoft-Henry

We are getting many errors on our Firebase console; some of the errors are mentioned here.
Can you please, once you look at this, let me know if you have any ideas to resolve it or fix it?

Fatal Exception: java.lang.IllegalStateException: Session has been closed; further changes are illegal.
at android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed(CameraCaptureSessionImpl.java:887)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.stopRepeating(CameraCaptureSessionImpl.java:418)
at com.dynamsoft.dce.CameraEnhancer$9.run(CameraEnhancer.java:1442)
at java.lang.Thread.run(Thread.java:1012)

image

Android application consuming the dynamsoft-capture-vision-cordova plugin fails to build

The Android application consuming the dynamsoft-capture-vision-cordova plugin fails to build with the following error:

[23:42:39]: ▸ FAILURE: Build completed with 2 failures.
[23:42:39]: ▸ 1: Task failed with an exception.
[23:42:39]: ▸ -----------
[23:42:39]: ▸ * Where:
[23:42:39]: ▸ Script '/home/runner/work/project/platforms/android/dynamsoft-capture-vision-cordova/test-barcodereader.gradle' line: 16
[23:42:39]: ▸ * What went wrong:
[23:42:39]: ▸ A problem occurred evaluating script.
[23:42:39]: ▸ > No signature of method: test_barcodereader_8rt3ypgrvfhme12j7io6xr0vw.android() is applicable for argument types: (test_barcodereader_8rt3ypgrvfhme12j7io6xr0vw$_run_closure1) values: [test_barcodereader_8rt3ypgrvfhme12j7io6xr0vw$_run_closure1@37a72807]
[23:42:39]: ▸ * Try:
[23:42:39]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[23:42:39]: ▸ ==============================================================================
[23:42:39]: ▸ 2: Task failed with an exception.
[23:42:39]: ▸ -----------
[23:42:39]: ▸ * What went wrong:
[23:42:39]: ▸ A problem occurred configuring project ':app'.
[23:42:39]: ▸ > compileSdkVersion is not specified. Please add it to build.gradle
[23:42:39]: ▸ * Try:
[23:42:39]: ▸ Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[23:42:39]: ▸ ==============================================================================

We are building the Android app with this command: bundle exec fastlane android build.

We are using [email protected] and [email protected].

Would you happen to know what's the issue here?

android: path / filename conflict

The path to the BarcodeScanner.java in Android conflicts with the other plugin phonegap-plugin-barcodescanner. Not sure why you didn't keep the folder naming consistent with the plugin name?

Cannot read property 'barcoeScanner' of undefined", source:

"Received Event: deviceready", source: file:///android_asset/www/js/index.js (63)
2019-11-17 12:03:35.400 6755-6755/com.example.hello I/chromium: [INFO:CONSOLE(32)] "Uncaught TypeError: Cannot read property 'barcoeScanner' of undefined", source: file:///android_asset/www/js/index.js (32)

i got this error
cordova.plugins.barcoeScanner.scan(

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.