insightautos / cordova-gmv-barcode-scanner

A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.
MIT License
52 stars 77 forks source link

IOS 13 camera display issue #33

Closed CrescentLee closed 2 years ago

CrescentLee commented 4 years ago

The new IOS 13 will cause a display issue for the usage of scanner. Below is my code and picture of display. Cause IOS 13 introduces the new page layout, so the button position is dropped and can only see half shape. Is there any solution for this? var options = { types: { QRCode: true }, detectorSize: { width: .5, height: .3 } } window.plugins.GMVBarcodeScanner.scan(options, function (err, result) { //Handle Errors if (err) return; //Do something with the data. if (result !== '') { // continue soundBeep(); $('#putawayaction2_txtLocation').val(result); } }); Image from iOS

f-cherchali commented 2 years ago

Hello, I'm facing the same problem with iOS 15 with XS MAX, did you found any solution for that ?

CrescentLee commented 2 years ago

Hello, I'm facing the same problem with iOS 15 with XS MAX, did you found any solution for that ?

Yes, this is due to IOS 13 new page modal features and you need to change cordova IOS source code https://stackoverflow.com/questions/56435510/presenting-modal-in-ios-13-fullscreen I forgot how I solved it, but this question might be helpful.