Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

send callbacks on dismissViewControllerAnimated completion #170

Merged
merged 1 commit into from Jun 23, 2016

Conversation

jcesarmobile
Copy link
Collaborator

Changed barcodeScanDone method to use a block, so it sends the
callbacks to the javascript side when the barcode scanner view
controller has been completely dismissed.
It was causing problems with the dialogs plugin if you used a dialog on
the success or error callback as the barcode scanner view was being dismissed and couldn't present a dialog over it.

@tony--
Copy link

tony-- commented May 25, 2016

@jcesarmobile - Do you know if this PR is still relevant? Just wondering if this was addressed in some other way in 5.0.0...

@jcesarmobile
Copy link
Collaborator Author

I don't think this has been addressed in some other way.
The dialogs problem won't appear now because I fixed another bug on the dialogs plugin that avoids the presentation of the dialog on a ViewController that is being dismissed, but if this isn't merged, there can be problems with other plugins that might present a ViewController with the QR result (inAppBrowser comes to my mind if you scan an url and try to open it).

Now I have permissions on this repo and can merge it, but should figure out why Travis failed first.
I'm in the middle of a travel, so I'll try to take a look next week.

@daserge
Copy link
Collaborator

daserge commented Jun 15, 2016

@jcesarmobile, I've restarted the build and it passed.

@jcesarmobile
Copy link
Collaborator Author

Thanks, I'll rebase because it has conflicts now, hope it passes again

Changed barcodeScanDone method to use a block, so it sends the
callbacks to the javascript side when the barcode scanner view
controller has been completely dismissed.
It was causing problems with the dialogs plugin if you used a dialog on
the success or error callback
@jcesarmobile
Copy link
Collaborator Author

Rebased

@EddyVerbruggen can you review it?

@EddyVerbruggen
Copy link
Collaborator

Look good, thanks! 👍

@jcesarmobile jcesarmobile merged commit ae9f6e2 into phonegap:master Jun 23, 2016
@jcesarmobile
Copy link
Collaborator Author

merged

@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants