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

Camera/Scanner Screen Auto Rotates #259

Open
wjchristenson2 opened this issue Mar 27, 2015 · 6 comments
Open

Camera/Scanner Screen Auto Rotates #259

wjchristenson2 opened this issue Mar 27, 2015 · 6 comments

Comments

@wjchristenson2
Copy link

I updated our BarcodeScanner plugin today and discovered that the camera/scanner now auto rotates its orientation. This is a game breaker for situations when you can't rotate the barcode to conform to the camera's orientation. Think of a car door where the VIN barcode is vertical... You can't rip off the door and rotate it...

If this is not an issue, does anyone know of a parameter or setting that can be used to lock in the current orientation or specify one?

Thanks

@Dbuggerx
Copy link

Are you using Android or iOS?

@wjchristenson2
Copy link
Author

Was testing on an Android LG G3.

@davorpeic
Copy link

How did you managed to get auto rotate? I installed today the plugin and need scanner to auto rotate but it doesn't :) using on ios 8.1

edit: ok I enabled autorotate inside the plugin so now its half working.

d

@gkorland
Copy link

@davorpeic how did you enable it?

@leibale
Copy link

leibale commented Apr 15, 2015

+1

@davorpeic
Copy link

Hey @gkorland I opened plugin file and enabled shouldAutorotate in here https://github.com/wildabeast/BarcodeScanner/blob/master/src/ios/CDVBarcodeScanner.mm#L991 you can change this in plugin folder, so your each build have corrected version.

I also needed for my plugin to start in landscape so I replaced all Portrait defined params (like in lines from 996-1005) to say Landscape or LandscapeRight, it worked, but it was starting always in oposite orientation, I guess best solution would be to define starting orientation according to Status bar position (but I'm not that into objective-c to be able to fix it.)

At the end, this plugin needs some serious maintenance, and it was to buggy for my needs, and as I need only to scan QR codes, I installed this plugin https://github.com/tjwoon/csZBar (just for the ios for the moment) and it's working as a charm.

gl,
davor

EddyVerbruggen added a commit to Telerik-Verified-Plugins/BarcodeScanner that referenced this issue Dec 22, 2016
Turning off found plain text wildabeast#259
Remove Result Prompt wildabeast#234
Custom Result Messages wildabeast#219
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

5 participants