blackberry / WebWorks-Community-APIs

Community owned repository containing JavaScript Extensions for BlackBerry WebWorks
Apache License 2.0
140 stars 204 forks source link

Barcode/QR Scanner will not display on screen after first run. #391

Closed arcaderob closed 9 years ago

arcaderob commented 9 years ago

After working with @timwindsor on ticket https://github.com/blackberry/WebWorks-Community-APIs/issues/389 created by @mattgrande , we have come to find that the barcode/qr scanner does not work after the first run. (This can also be replicated in the sample)

I scanned the QR code and the scanner closed and displayed the app with the data returned from the scanner. Upon tapping the scan button again, the scanner appears blank on the device's screen, BUT it will still "scan" the code. In other words, the scanner continues to read and return data, but it only displays the scanner on the screen the first time it is run.

Tested on Balckberry Z30 10.2.1.3062

timwindsor commented 9 years ago

Yes I'm seeing this too. Works fine on 10.3.1, but reproduces with 10.2.1.2102 after either a first scan or after a cancelled scan. I'm looking into it.

arcaderob commented 9 years ago

Thanks @timwindsor Hope that it's not too much work for you!

arcaderob commented 9 years ago

Is there any news on this issue?

timwindsor commented 9 years ago

I'm not sure what is going on. There's no error message that I can see, so I've asked for help from some other experts here. Hopefully there's a workaround or error in my code they can spot quickly.

arcaderob commented 9 years ago

Any updates?

timwindsor commented 9 years ago

Still working on it. I've got a better idea of what's going on, and some thoughts on how to fix it. I expect it will take me a few days though.

arcaderob commented 9 years ago

Thanks for the update! Happy coding!

On Jan 23, 2015, at 2:56 PM, Tim Windsor notifications@github.com wrote:

Still working on it. I've got a better idea of what's going on, and some thoughts on how to fix it. I expect it will take me a few days though.

— Reply to this email directly or view it on GitHub https://github.com/blackberry/WebWorks-Community-APIs/issues/391#issuecomment-71255141.

timwindsor commented 9 years ago

Took me a bunch of trial and error, but eventually I had a brainwave. Give this a try (also published to the registry) and see if it's working for you.

arcaderob commented 9 years ago

I have tried it out and everything seems to be working well. Thank you for all your help!

timwindsor commented 9 years ago

Awesome. I think there's some things we might continue to work on, but at this point I think all the truly critical issues are taken care of.

arcaderob commented 9 years ago

Agreed. I will add that the folder structure of the BarcodeScanner is different than the rest of the plugins. There is an extra "tier". I don't know if you want to change this to keep it uniform with the rest of the plugins, but, again, great work!

timwindsor commented 9 years ago

Do you mean compared to other plugins in the same repo, or other plugin projects elsewhere?

arcaderob commented 9 years ago

My apologies. I was looking at the wrong folder. Everything is in order.