BarcodeScanner icon indicating copy to clipboard operation
BarcodeScanner copied to clipboard

Delayed openDialog call still has issues

Open pardeike opened this issue 9 years ago • 0 comments

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.

pardeike avatar Sep 03 '15 21:09 pardeike