https://github.com/zeroasterisk/phonegap-barcodescanner-example-ios
Example iOS PhoneGap Application with a working BarcodeScanner Plugin
https://github.com/zeroasterisk/phonegap-barcodescanner-example-ios
Last synced: about 1 year ago
JSON representation
Example iOS PhoneGap Application with a working BarcodeScanner Plugin
- Host: GitHub
- URL: https://github.com/zeroasterisk/phonegap-barcodescanner-example-ios
- Owner: zeroasterisk
- Created: 2013-05-28T03:34:54.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-28T16:19:34.000Z (about 13 years ago)
- Last Synced: 2023-10-20T23:59:19.395Z (over 2 years ago)
- Language: Objective-C
- Size: 7.38 MB
- Stars: 24
- Watchers: 7
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Example iOS PhoneGap Application with a working BarcodeScanner Plugin
Instructions
================
Take a look at this commit:
https://github.com/zeroasterisk/PhoneGap-BarcodeScanner-Example-iOS/commit/69f3300fe77ba5af6ad576d517b3b78406a00a80
Specifically:
Installed the plugin (in a handful of paths) but kept the one which worked.
Implemented a basic JS scanner code to demonstrate functionality:
auto-runs on load,
auto-reloads on error,
alerts on success/failure/cancel.
NOTE: the comments on the barcodescanner.js and index.js,
both mention my customization of the define/require object paths.
I could not get the demo/example paths to work, after several permutations.
Copied Files:
* barcodescanner/Plugins/com.phonegap.plugins.barcodescanner/...[all files]...
* barcodescanner/Resources/scannerOverlay.xib
Edited Files:
* barcodescanner/config.xml (added single plugin line)
* www/js/barcodescanner.js (manually changed the path for the define)
* www/index.html (included barcodescanner.js beforehand)
* www/js/index.js (auto-testable app.scan() method)