ttatarinov / lineapro-phonegap-plugin

LineaPro Phonegap Plugin
MIT License
19 stars 44 forks source link

Linea Pro connections lost #6

Closed tinnocente closed 9 years ago

tinnocente commented 9 years ago

Hello, first of all - awesome plugin. Works pretty nicely for what we need it for.

I am noticing a problem though - whenever we leave the LineaPro app running for an extended period of time (24+ hours) - the barcode scanner and/or the magstripe reader loses it's connection to the app.

We can swipe or press the button to scan a barcode - but nothing happens. IE: the laser does not come on.

To fix it, we have to reload the app (kill the current app and launch it again).

Is this a known limitation at all? Something you've experienced in the past?

Thanks,

Tim

warrenbell commented 9 years ago

We got around this by reinitializing the scanner when a "on resume" event is fired by Cordova.

tinnocente commented 9 years ago

Sounds promising. Will give it some test runs.

tinnocente commented 9 years ago

So far so good. Thanks again!