Giter VIP home page Giter VIP logo

qrticketing's Introduction

qrticketing's People

Contributors

tgoorden avatar

Stargazers

 avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar  avatar

Forkers

web1o1

qrticketing's Issues

Trying to squeeze in the Barcode plugin...

The code currently has a "hook" that is supposed to trigger an actual barcode scan instead of a prompt() when "Scan" is attempted.

Steps taken:

  • Built de ZXing Library from https://github.com/phonegap/phonegap-plugins/tree/master/Android/BarcodeScanner using ADT/Eclipse. (version 2.2.0)
  • Put the resulting jar in /platforms/android/libs
  • Added barcodescanner.js to /www/js. Manually changed index.html to include this js file. *All of this gets copied to the platform specific dir during build, so you can't do that in the generated platform-specific folder.
  • Added Activity in AndroidManifest.xml, as per instructions.
  • Added /platforms/res/xml and created plugins.xml file. This seems dodgy...
  • Compiled the BarcodeScanner.java file in Eclipse (according to instructions, sort off), throw the result in /platform/android/gen. Super dodgy.

Result? windows.plugins.barcodeScanner doesn't seem to resolve at all in the application. (I screwed with the JS to force it to try and load, resulting in a null.)

Possible approaches?

  • Figure out if and how plugins are loaded in cordova apps.
  • Perhaps use the mysterious (empty) /plugins folder? We could look at other Cordova plugins to see how they are defined perhaps?

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.