The screen turns sideways when using the Monaca/Cordova barcode plug-in.

Asked 2 years ago, Updated 2 years ago, 62 views

Thank you very much.
We are developing applications for Android tablets using the Monaca/Cordova barcode plug-in.
The bar code reading screen is always horizontal, but is it possible to turn it vertically?
Since the input screen is supposed to be used vertically, I would like to read bar codes vertically if possible.
I would appreciate it if you could let me know if you know.

monaca

2022-09-30 17:20

3 Answers

In December 2015, I asked the Monaca support representative at Asial about the same issue.
The answer was that it is not possible to do it vertically because it is forced horizontally.
As for whether we will deal with it in the future, it would be better not to expect too much.

When asked if there is any other way, if you create your own plug-in around cordova,
There's nothing Monaca can't do...w

If you can't persuade your client, I think it's a good idea to switch to a native speaker earlier than playing cordova.


2022-09-30 17:20

Android "Settings" - > "Android Settings" at the bottom of the screen

iOS
Settings - > iOS Settings is located at the bottom of the screen.


2022-09-30 17:20

Is this the plug-in you are using?
https://github.com/monaca-plugins/mobi.monaca.plugins.BarcodeScanner
Check plugin.xml to see
plugin>platform>config-file>activity tag

android:screenOrientation="landscape"

The value is set to .
This is

android:screenOrientation="portrait"

You may want to change to .

It seems that some repositories have been changed.
https://github.com/Dbuggerx/BarcodeScanner

(I'm sorry if it's a wrong answer…)


2022-09-30 17:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.