google-code-export / tibar

Automatically exported from code.google.com/p/tibar
1 stars 0 forks source link

Scan camera window not closing on successful scan #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The problem description:

At times, usually after a few successful scans, the camera window does not 
close without hitting the "cancel" button.  The scan 'success' function runs 
successfully (with Ti.API.info at start and end both called), the callback 
function runs successfully (with Ti.API.info at start and end both called), and 
everything works as if the scan was successful - an api call is made and the 
fields behind the camera window are populated with this data (can be seen once 
the camera's "cancel" button is touched)

when this happens, there is *always* a green box on the screen that looks as 
though it's trying to find the bar code, even though the scan has already 
succeeded.  it continues searching for the barcode until one of the following 
happens:

1.) cancel button is pressed

2.) the camera lens is covered for a few seconds, then uncovered.  the green 
box goes away and the scan will usually succeed as normal.

it looks like the green box is some sort of auto symbol detection that may be 
interfering with the closing of the camera.  as long as the green box doesn't 
appear, everything works normally.  

Questions: 

1.)  is there a way i can detect and manually force the camera screen to close 
during the success or callback function that is being run in spite of the 
camera window?

2.)  is there a way to disable this otherwise friendly looking green box?  I 
feel like it may just be a symptom of another underlying issue...

What version of the product are you using? On what operating system?
0.4.2, Mac OS X 10.7.4,   iOS 

Titanium Mobile SDK: mobilesdk/osx/2.0.1.GA2/iphone

Titanium Developer: 2.0.1.201204132053 ?

XCode: 4.3.2
iOS: 5.1.1
iPhone:  iPhone3,1
iPhone iOS:  5.1.1

Original issue reported on code.google.com by mynameis...@gmail.com on 29 May 2012 at 6:19

GoogleCodeExporter commented 9 years ago
I think I solved my issue with TiBar config:

switched:

cameraMode from 'default' to 'sampling'
tracksSymbols to false
enablecache to false

hope that's helpful to someone.

Original comment by mynameis...@gmail.com on 29 May 2012 at 7:00

GoogleCodeExporter commented 9 years ago
never mind - it's still happening.  just without the green box now.  

Original comment by mynameis...@gmail.com on 29 May 2012 at 7:16