BlueFletch / motorola-datawedge-cordova-plugin

This is a Cordova/Phonegap plugin to interact with Motorola ruggedized Android devices' Barcode Scanners and Magnetic Stripe Readers (eg, ET1, TC55, MC40). The plugin works by interacting with the "DataWedge" application configured to output scan and magstripe read events.
35 stars 38 forks source link

Callback for registerForBarcode not fired #5

Closed helder-robalo closed 10 years ago

helder-robalo commented 10 years ago

This method registerForBarcode is not getting the barcode when using the physical button on Motorola MC40.

Is there some functional demonstration project?

blakebyrnes commented 10 years ago

It's hard to provide a demonstration project because you have to configure the DataWedge yourself on the device. Are you configuring the default data wedge profile, or adding another one?

blakebyrnes commented 10 years ago

I should say, a default cordova project that has the plugin installed and the code from the README should work once you've configured the data wedge application to match.

helder-robalo commented 10 years ago

Thanks for quick feedback. I was using the default profile0

blakebyrnes commented 10 years ago

So for that one you just need to make sure to configure the data wedge to broadcast an intent with the action of: com.bluefletch.motorola.datawedge.ACTION and make sure not to put any Category in there. Do you see anything happening in the logs?

helder-robalo commented 10 years ago

Done! Worked! Thank you