-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Interactive dismissal in iOS 13 #814
Comments
The issue appears when the app is builded with xCode 11. |
@vlinde DId you open a pull request for that change? |
@brandonhudson Doesn't look like one was created. I can confirm that the fix from @vlinde works - it disables the ability to swipe the modal. |
Awesome, thanks! |
I think the code need to be updated, I’ll check today.
This condition `if (@available(iOS 13.0, *))` need to be changed to work an all devices with iOS 13. You can try to replace `13.0` with `13`.
… On 9 Oct 2019, at 02:47, Adrián Peña ***@***.***> wrote:
So basically you must edit the .mm in the plugins/barcodescanner/src/ios/CDVBarcodeScanner.mm and that's all?
I feel like I'm missing something, I already raw pasted the whole corrected .mm and still will allow iOS 13 users to swipe the modal out.
|
It was my bad, for some reason I got 2 different CDVBarcodeScanner.mm, I changed both and it worked. |
Could you be more precise on how to fix this problem ? I have also the problem about the process still running when I click the cancel button which makes me impossible to re launch the scanner a second time. |
@eshope-repo There is an alternative solution to this problem. If fullscreen is not an issue with you, the default screen mode can be opened as PresentationFullscreen like this: nakhadon@1332ba0. The screen is then opened as fullscreen and a swipe down to close the camera is not possible. If this is a viable solution and fullscreen is not an issue for everyone, I can start a PR. |
Any Updates on this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@nakhadon Thank you! Please merge the fix! |
Hi, i found a solution to display the scanner in full screen and not in modal (pending official correction) In the CDVBarcodeScanner.mm file (cordova-plugin-barcodescanner) 1/ Find & Replace openDialog function (in Xcode)
I hope you help |
Guess someone created a pull request #869 |
There are many pull requests but no committer is approving or rejecting it and thats unfortunate. This will force many of us to move away from this plugin if it is not maintained |
Expected Behaviour
Slide down to fully close the modal.
Actual Behaviour
The modal dissapears but the process remains active.
If the modal is closed using the slide action, you cannot open for the second time.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Open the modal and slide down.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 13
Plugin version
phonegap-plugin-barcodescanner 8.1.1-dev "BarcodeScanner"
The text was updated successfully, but these errors were encountered: