Closed asyncanup closed 9 years ago
Hi Anup, Could you verify that the registerForBarcode is getting registered again when you re-start the app? Maybe just put in some console.log statements right before the function. If you're actually killing the app, I can't think of any reason the app wouldn't be registering again. It also looks like worklight might not be calling onDeviceReady every time (http://stackoverflow.com/questions/21015646/ibm-worklight-6-0-cordova-ondeviceready-is-not-firing). Try moving your registration into the WorkLight started callback if it's not there already.
I was able to get this to work properly with calling .stopScanner()
, .stop()
, .start()
in sequence on every app launch :)
Thanks for the help! You were absolutely ready about putting it inside deviceready
Hi,
I am testing this scanner on Motorola TC55, Android versin 4.1.2
Running
datawedge.start()
,datawedge.registerForBarcode
anddatawedge.startScanner()
work just fine when the app is run the first time from Eclipse (with USB debugging)But when I kill the app on the phone (swipe it off from Recent apps), and launch it again, now the scanner stops calling its callback registered with
registerForBarcode
I am using IBM Worklight, and using this plugin with default settings.
Please help..