Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed openDialog call still has issues #304

Open
pardeike opened this issue Sep 3, 2015 · 0 comments
Open

Delayed openDialog call still has issues #304

pardeike opened this issue Sep 3, 2015 · 0 comments

Comments

@pardeike
Copy link

pardeike commented Sep 3, 2015

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.

EddyVerbruggen added a commit to Telerik-Verified-Plugins/BarcodeScanner that referenced this issue Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant