adamweeks / ion-scanner Goto Github PK
View Code? Open in Web Editor NEWA barcode scanner built with the Ionic Framework
A barcode scanner built with the Ionic Framework
still have error when inspect on chrome, advise ?
like this error issue :
ReferenceError: cordova is not defined
at Object.scan (ng-cordova.min.js:7)
at controllers.js:7
at ionic.bundle.js:44806
at Object.ready (ionic.bundle.js:2120)
at Object.ready (ionic.bundle.js:44804)
at Object.vm.scan (controllers.js:6)
at $parseFunctionCall (ionic.bundle.js:21044)
at ionic.bundle.js:53439
at ChildScope.$eval (ionic.bundle.js:23100)
at ChildScope.$apply (ionic.bundle.js:23199)
I was really happy to have found your blogpost detailing (or so I thought) how to put together a barcode scanner for ionic. Having very carefully followed your plain and easy to follow steps to build this app I had to spend the next 3 hours trying to figure out why it wasn't working only to find out that you decided to skip some of the steps (sadly critical ones) likely for brevity but without informing the reader that this is what you were doing.
So the reader continues, trusting your words only to dig themselves into a hole.
Could I suggest that if you decide to miss out steps all you have to do is just mention that to the reader - which would be much more helpful than keeping it quiet -
Hi Adam,
your tutorial is great!
But i have an error, when execute the app, press the button Scan, read the barcode show the message "Text found" and closes the app.
Please can you help me,
Thanks
Hi,
I have just downloaded your app and built with ionic 1 then tested it on my iPhone, the app runs but the "Scan Now" button doesn't trigger the camera to launch, thus not working. Did I miss anything, or is there anything I need to change in order to make it work? (I didn't change anything in the example code).
Cordova CLI: 7.0.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 1.0.0-rc.5
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: 1.9.2
ios-sim version: 6.1.2
OS: Mac OS X El Capitan
Node Version: v4.8.3
Xcode version: Xcode 9.3 Build version 9E145
Best regards.
Thank for this! It saves me a lot of time.
I'd like to create a dotted border for the viewfinder and add a new text on top of the view finder. Also change the text of the default message. Both for Android and iOS.
I'd like to customize the UI for the scanning page as I mentioned above. Can you point in the right direction on how to do this ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.