Comments (7)
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.
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.
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.
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.
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.
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.
I see. Thanks for the update :)
from cszbar.
Related Issues (20)
- iOS 11.0.1 NSRangeException HOT 1
- tjwoon/csZBar
- zBar not showing on iOS 11 even with #122 or #120 patch HOT 4
- Error while doing "cordova platform add android" HOT 4
- Scanner is not working anymore on iOS 11
- Crash Android on Bar code scan HOT 1
- iPhone X, iOS11.2.6 Crash HOT 3
- Problem whit ionic v4 HOT 1
- a scan is already in progress
- Ability to zoom HOT 1
- Android x86_64 HOT 1
- Is there any way to display scanner continuously? HOT 1
- would like to scan multiple qr codes simultaneously.how? HOT 2
- Can I add some custom button for back?
- Is it possible to allow html overlay in iOS and Android? HOT 2
- Message after success scanned
- Scanning only in middle of the screen
- change bg color from black to white HOT 9
- focus motog 5 plus
- Error When Build error: cannot find symbol import android.support.v4.app.ActivityCompat HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cszbar.