Giter Site home page Giter Site logo

Does it work with cordova 4.0+? about cszbar HOT 7 CLOSED

tjwoon avatar tjwoon commented on August 21, 2024
Does it work with cordova 4.0+?

from cszbar.

Comments (7)

tjwoon avatar tjwoon commented on August 21, 2024

Hi 😃
It should work, unless Cordova's plugin interface changed... Only the command line tools are actually at version 4.x. The Cordova Android and iOS versions are both at v3.x.

Are there any suspicious logs when you return from the scanner to your app?

from cszbar.

tjwoon avatar tjwoon commented on August 21, 2024

The problem might be with your first parameter. Please try again with by calling the plugin like this:

CloudSky.zBar.scan(
    {},
    function (s) { alert(s) },
    function (s) { alert("Scanning failed: " + s) }
)

from cszbar.

guizero avatar guizero commented on August 21, 2024

Hey! I have tried calling as you said, but it still does not work. It opens, but after the scan it still goes back to the app as if it had never initialized. I tried opening it on eclipse, and also tried gapdebug. Where can I find the logs to search for suspicious problems?

I am testing it in a fresh cordova install, with a fresh test app which only has one button to open the scan!

from cszbar.

guizero avatar guizero commented on August 21, 2024

So, I've installed Eclipse and THyM (https://www.eclipse.org/thym/) and tried running the app with different cordova builds. The only one that seems to work is 3.6.3.... I have tried with 3.5.0 and 3.4.0 and 4.1.2... they all open the scanner, but only with 3.5.0 I get the alert after the scan.

Using android 4.4.4 on a moto g device

from cszbar.

tjwoon avatar tjwoon commented on August 21, 2024

Hi again. Sorry for the long delay between replies... I just tried the plugin with [email protected] on an emulator and an Android 5.0.1 device - it works as expected in both cases (failure callback on emulator of course).

I don't know what versions of Cordova you are referring to. Each component of Cordova has an independent version number now. The latest version of cordova-android is 3.6.4, which works fine for me too. Meanwhile the command line tools are at version 4.1.2, which is what I am using.

from cszbar.

guizero avatar guizero commented on August 21, 2024

I was having a problem with my emulator and my device. This error no longer
exists. Thank you

On Thu, Jan 22, 2015 at 1:33 PM, TJ Woon [email protected] wrote:

Hi again. Sorry for the long delay between replies... I just tried the
plugin with [email protected] on an emulator and an Android 5.0.1
device - it works as expected in both cases (failure callback on emulator
of course).

I don't know what versions of Cordova you are referring to. Each component
of Cordova has an independent version number now. The latest version of
cordova-android is 3.6.4, which works fine for me too. Meanwhile the
command line tools are at version 4.1.2, which is what I am using.


Reply to this email directly or view it on GitHub
#7 (comment).

from cszbar.

tjwoon avatar tjwoon commented on August 21, 2024

I see. Thanks for the update :)

from cszbar.

Related Issues (20)

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.