phonegap / phonegap-plugin-barcodescanner

cross-platform BarcodeScanner for Cordova / PhoneGap
MIT License
1.27k stars 1.42k forks source link

IOS - get noticed when the the scanning dialog is swiped out #880

Closed inverplax closed 4 years ago

inverplax commented 4 years ago

Hello,

this is just a question. Is there anybody who knows how to get a notice when the scanning dialog is swiped out.

As you know, now users can swipe the scanning dialog, but the plugin doesn't say it has been closed.

We could prevent from being swiped out. There is a pull request for it. But, I am wondering If there is a possibility to receive a callback when user closes the dialog, by swiping it out.

Thanks a lot for your help.

Regards, inverplax.

inverplax commented 4 years ago

Hello, after investigating, I would propose to add a few lines:

They go into the implementation of CDVbcsViewController.

The code works, but is it a good solution? What do you think?