BarcodeScanner
BarcodeScanner copied to clipboard
Delayed openDialog call still has issues
On my iPhone 6 with iOS 9 the delayed call to [self openDialog] in the method scanBarcode (CDVBarcodeScanner.mm) is rather annoying. It will prolong the startup time and fail sometimes anyway.
My suggestion is to replace
[self performSelector:@selector(openDialog) withObject:nil afterDelay:1];
with
[self performSelectorOnMainThread:@selector(openDialog) withObject:nil waitUntilDone:NO];
and things become quite zippy again.