Comments (15)
Haven't had the chance to test use it on iOS, but try the fixed plugin.xml:
https://github.com/Eccenux/BarcodeScanner/blob/master/plugin.xml
from barcodescanner.
Thanks! This helped me install the plugin itself but the iOS version still needed some adjustments.
This fixed my problem, just in case someone else runs into the same thing:
https://github.com/jonathannaguin/BarcodeScanner/blob/master/src/ios/CDVBarcodeScanner.mm
from barcodescanner.
Hi fellow IOSers, i'm still having trouble getting this to build correctly.
with: (after the tweaks to the .mm and the .xml files)
phonegap local plugin add ../../Desktop/BarcodeScanner-master/
and
phonegap build ios
returns:
** BUILD FAILED ** The following build commands failed: CompileC build/sparkleapp.build/Debug-iphonesimulator/sparkleapp.build/Objects-normal/i386/CDVBarcodeScanner.o sparkleapp/Plugins/com.phonegap.plugins.barcodescanner/CDVBarcodeScanner.mm normal i386 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
Did you guys get this to load with these files? also, any chance we can get the mighty wildabeast to rebuild so we can install straight from github and the phonegap 3.0.0 command line????
Ideally:
phonegap local plugin add https://github.com/wildabeast/BarcodeScanner.git
Any/all help would be much appreciated guys, thanks a ton!
from barcodescanner.
Having the same issue as @uofmmike
from barcodescanner.
Had the same problem as ibudai and the the CDVBarcodeScanner.mm tweak also worked for me. The problem is I still get the error
"ERROR: Method 'encode: ' not defined in Plugin 'BarcodeScanner' "
for the encode() method. I couldn't figure out which changes in CDVBarcodeScanner.mm solved the problem for scan() ... Can someone help? Thanks guys!
from barcodescanner.
I have the same problem have you find a solution to run an example with cordova 3 and barcode scanner
from barcodescanner.
@Yossarian24 have you got a working example?
from barcodescanner.
@trippo
Yes, I've got the Barcode Scanner working with Cordova 3.0.0 but only the scan() Method and NOT the encode().
All I did:
- create project like described at http://docs.phonegap.com/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface
- then add the plugin (https://github.com/Eccenux/BarcodeScanner) with "phonegap local plugin add"
- overwrite the CDVBarcodeScanner.mm with the link ibudai posted
from barcodescanner.
@Yossarian24 i try but i must add -fno-objc-arc in Project - Buil Phases - compile source CDVBarcodeScanner.mm line to resolve the problem
from barcodescanner.
@trippo
Yeah you are right! I changed the ARC in XCode. After that no Errors compiling the project. There are only 4 minor "Semantic Issues" left in the zxing-all-in-one.cpp.
from barcodescanner.
Got generating QR-Codes working with https://github.com/amanuel/JS-HTML5-QRCode-Generator
I'm not really familiar with Objective-C, but in the CDVBarcodeScanner.mm the encode() method only consists of
[self returnError:@"encode function not supported"];
Can someone tell me where the encode() is implemented?
from barcodescanner.
Add me to the list... On ios build i get 20 errors in relation to ARC restrictions... coming from CDVBarcodeScanner.mm. Would anyone know where this is coming from? I have used the plugin on PG 2.9 before and it worked just fine
from barcodescanner.
@guizmo must add -fno-objc-arc in Project - Buil Phases - compile source - CDVBarcodeScanner.mm line to resolve the problem
from barcodescanner.
Just to mention, the CDVBarcodeScanner.mm tweak also worked for me. Thanks.
from barcodescanner.
This should be fixed now with the 3.0.0 updates courtesy of @agrieve.
from barcodescanner.
Related Issues (20)
- Frame the camera view? HOT 1
- App crash HOT 1
- Interface is too ugly, can you change HOT 3
- QR code scanning is very slow on iOS
- PDF417 ios
- Scanning only first barcode part
- success-function returns nothing
- android,The image is distorted in the scan area HOT 1
- build fail
- .
- How to change UIColors
- CAMERA_USAGE_DESCRIPTION not added to Info.plist
- NSCameraUsageDescription... localized strings
- Trying to add a back button in android. HOT 1
- Disable flashlight at volume-buttons
- After the last update I get a "Access violation"-Error when starting the Scanner on W10/W10(m)
- Modifying cordova bar code scanner plugin interface in sap ui5 for andriod
- What is the minimum version of Android to use this plugin?
- German text encoding issue while scanning qr code HOT 1
- Archive repo and move ownership to the phonegap one 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 barcodescanner.